Open pimeys opened 3 months ago
getting the same bug as well :/
Just tried this and run0 nixos-rebuild switch
seems to work now for me by and large. The only extra error I get is:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_GB.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Other than that it seems to work as expected.
run0 nixos-rebuild switch
gives
error:
… <borked>
at «none»:0: (source not available)
… while calling the 'import' builtin
at «string»:1:6:
1| with import <nixpkgs/nixos> {}; config.system.build.nixos-rebuild
| ^
(stack trace truncated; use '--show-trace' to show the full trace)
error: file 'nixpkgs/nixos' was not found in the Nix search path (add it using $NIX_PATH or -I)
at «none»:0: (source not available)
building Nix...
error: file 'nixpkgs/nixos' was not found in the Nix search path (add it using $NIX_PATH or -I)
at «none»:0: (source not available)
error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)
at «none»:0: (source not available)
error: file 'nixpkgs/nixos/modules/installer/tools/nix-fallback-paths.nix' was not found in the Nix search path (add it using $NIX_PATH or -I)
at «none»:0: (source not available)
But with plain pkexec all fine.
Describe the bug
You can't switch to a new configuration by using run0.
Steps To Reproduce
Steps to reproduce the behavior:
run0 nixos-rebuild switch
Expected behavior
A new system configuration is built and switched successfully.
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.