You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I updated my flake and tried to switch to the new generation, it failed with
[iopq@desktop:~]$ sudo nixos-rebuild switch
[sudo] password for iopq:
warning: Git tree '/etc/nixos' is dirty
building the system configuration...
warning: Git tree '/etc/nixos' is dirty
evaluation warning: qt6Packages.stdenv is deprecated. Use stdenv instead.
terminate called after throwing an instance of 'nix::Error'
what(): error: cannot determine user's home directory
Traceback (most recent call last):
File "/nix/store/sk24hzhak6cy37g7yq9yyb6c93csjv7s-systemd-boot/bin/systemd-boot", line 431, in <module>
main()
File "/nix/store/sk24hzhak6cy37g7yq9yyb6c93csjv7s-systemd-boot/bin/systemd-boot", line 414, in main
install_bootloader(args)
File "/nix/store/sk24hzhak6cy37g7yq9yyb6c93csjv7s-systemd-boot/bin/systemd-boot", line 357, in install_bootloader
gens = get_generations()
^^^^^^^^^^^^^^^^^
File "/nix/store/sk24hzhak6cy37g7yq9yyb6c93csjv7s-systemd-boot/bin/systemd-boot", line 213, in get_generations
gen_list = run(
^^^^
File "/nix/store/sk24hzhak6cy37g7yq9yyb6c93csjv7s-systemd-boot/bin/systemd-boot", line 58, in run
return subprocess.run(cmd, check=True, text=True, stdout=stdout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/c9m6yd8fg1flz2j5r4bif1ib5j20a0cy-python3-3.12.8/lib/python3.12/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/nix/store/w6wybyfakrgnp1rb0mrj66xlj8118z8c-nix-2.24.11/bin/nix-env', '--list-generations', '-p', '/nix/var/nix/profiles/system']' died with <Signals.SIGABRT: 6>.
Failed to install bootloader
[iopq@desktop:~]$ nix-shell -p nvtop
error:
… while calling the 'import' builtin
at «string»:1:18:
1| {...}@args: with import <nixpkgs> args; (pkgs.runCommandCC or pkgs.runCommand) "shell" { buildInputs = [ (nvtop) ]; } ""
| ^
… while realising the context of a path
… while calling the 'findFile' builtin
at «string»:1:25:
1| {...}@args: with import <nixpkgs> args; (pkgs.runCommandCC or pkgs.runCommand) "shell" { buildInputs = [ (nvtop) ]; } ""
| ^
error: cannot connect to socket at '/nix/var/nix/daemon-socket/socket': Connection refused
The issue is somehow my entire /nix folder is owned by another user which runs the proxy program which causes
every permission problem possible
after i chowned some folders I got a new error message:
terminate called after throwing an instance of 'nix::Error'
what(): error: cannot determine user's home directory
/run/current-system/sw/bin/nixos-rebuild: line 216: 8058 Aborted (core dumped) "$@"
Describe the bug
When I updated my flake and tried to switch to the new generation, it failed with
Steps To Reproduce
sudo nixos-rebuild switch
Expected behavior
switch should succeed
Metadata
nix-env (Nix) 2.24.11
sudo /nix/store/w6wybyfakrgnp1rb0mrj66xlj8118z8c-nix-2.24.11/bin/nix-env --list-generations -p /nix/var/nix/profiles/system
returns a list of generations
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: