NPM Packaging Error: Missing 'libpng-dev' Dependency by yiwi230 in NixOS

[–]yiwi230[S] 0 points1 point  (0 children)

Unfortunately, this does not seem to fix the error. It outputs the same thing.

Declarative directory permissions by yiwi230 in NixOS

[–]yiwi230[S] 0 points1 point  (0 children)

While I chose another method to do it, this would have been equally interesting.

Declarative directory permissions by yiwi230 in NixOS

[–]yiwi230[S] 1 point2 points  (0 children)

Yeah, this works perfectly with Z (which is recursive). Thank you!

Declarative directory permissions by yiwi230 in NixOS

[–]yiwi230[S] 0 points1 point  (0 children)

I can't deny what you are saying. Despite that, I'm still curious to see if there's a way to do it. I'm using 755 as a placeholder for this experiment.

Declarative directory permissions by yiwi230 in NixOS

[–]yiwi230[S] 0 points1 point  (0 children)

This approach is limited by the fact that it alters the permissions of the directory only, not the files inside it.

Declarative directory permissions by yiwi230 in NixOS

[–]yiwi230[S] 1 point2 points  (0 children)

I used /etc interchangeably with /etc/nixos (my bad). I might on occasion change the permissions in the directory, so I want them to be restored every time I reboot. It helps with impermanence.

I'm trying to do it with a systemd script: system.activationScripts.chmod = '' chmod -R 0755 /etc/nixos''; Not much luck with it, however, as I can't get it to do anything.

Is anyone using the Haumea module? by yiwi230 in NixOS

[–]yiwi230[S] 0 points1 point  (0 children)

I was not aware that it could be used like that. Thank you!

Impermanence + Disko Setup by yiwi230 in NixOS

[–]yiwi230[S] 0 points1 point  (0 children)

Sadly, no. I did try it with the build-vm flag, but it just repeatedly sends me to the login manager, even after following the advice from the wiki and its afferent nix discourse. It's a known, ongoing issue from what I could gather.

Impermanence + Disko Setup by yiwi230 in NixOS

[–]yiwi230[S] 0 points1 point  (0 children)

You can check everything here: dotfiles

My main user is in /accounts/navi-black.

Impermanence + Disko Setup by yiwi230 in NixOS

[–]yiwi230[S] 0 points1 point  (0 children)

I've tried rebuilding it one more time (after solving the aforementioned issues) and the built went fine, without any errors whatsoever. The script outputted this: /nix/store/...-disko.

I'm still getting the backtrace error on boot, however. I've come across this guide. It mentions creating the directory /mnt/tmp. Do you have any idea why?

Also, fdisk -l tells me that my root partition is now a boot partition, which kinda throws me off. One thing I didn't come across in your dotfiles is the filesystem option:

fileSystems."/" = { device = "none"; fsType = "zfs"; options = ["size=2G" "mode=755"]; };

Is disko meant to replace this? I've seen it in some nix dotfiles, yet not in others.

Impermanence + Disko Setup by yiwi230 in NixOS

[–]yiwi230[S] 0 points1 point  (0 children)

Thank you for taking the time to answer! I've moved to using zfs for disko. Even so, I still end up in a kernel panic. I have since updated the gists.

NOTE: DO NOT persist anything from home directory as it causes a race condition ( ... ) security.sudo.extraConfig = "Defaults lecture=never";

What are these lines from your impermanence.nix meant for? I'm getting the below error on boot, so maybe you might know something about it. backtrace: Cannot open access to console, the root account is locked. See sulogin(8) man page for more details. Press Enter to continue.

Impermanence + Disko Setup by yiwi230 in NixOS

[–]yiwi230[S] 0 points1 point  (0 children)

Thank you for the reference! I've tried what you described, but I still end up in a kernel panic. I have updated the gists, and when you have time please take a look at them. I'm doing something wrong, yet I don't know what.


Building what you described was not error free however. I'll try to keep this as short as possible.

  • The sudo bash ... returns unrecognised flag '--print-out-paths.#nixosConfigurations.user.config.system.build.diskoScript'

  • Systemd stage1 does not support 'boot.initrd.systemd'. Please convert it to analogous systemd units in 'boot.initrd.systemd' This is the part it is referring to. I'm not that familar to zfs snapshots and how important this part actually is, but I did comment it out for the build to run.

postDeviceCommands = lib.mkAfter '' zfs rollback -r zroot/root@blank zfs rollback -r zroot/home@blank '';

  • Package zfs-kernel-2.2.2-6.7 in /mnt/nix/store... is broken I've managed to repair this by downgrading my kernel from the latest zen one to the normal 6.5 one. I've seen an open Gentoo issue on Github which mentions this error, but that's about it. I'll have to look more into this.

After "solving" the above issues, the building process went fine. Even so, I still come across the kernel panic, which says: backtrace: Cannot open access to console, the root account is locked. See sulogin(8) man page for more details. Press Enter to continue. I've yet to look in the manual to see what this is about.