mirror of
https://github.com/elitak/nixos-infect
synced 2024-11-21 18:53:10 +00:00
Resolved symlink to nixpkgs channel before passing to nix-env command (#191)
Co-authored-by: Jonah Bron <hi@jonah.id>
This commit is contained in:
parent
bbe94a1175
commit
45e2361a9e
1 changed files with 1 additions and 1 deletions
|
@ -345,7 +345,7 @@ infect() {
|
|||
export NIXOS_CONFIG="${NIXOS_CONFIG:-/etc/nixos/configuration.nix}"
|
||||
|
||||
nix-env --set \
|
||||
-I nixpkgs=$HOME/.nix-defexpr/channels/nixos \
|
||||
-I nixpkgs=$(realpath $HOME/.nix-defexpr/channels/nixos) \
|
||||
-f '<nixpkgs/nixos>' \
|
||||
-p /nix/var/nix/profiles/system \
|
||||
-A system
|
||||
|
|
Loading…
Reference in a new issue