mirror of
https://github.com/elitak/nixos-infect.git
synced 2024-11-01 00:29:57 +03:00
Resolved symlink to nixpkgs channel before passing to nix-env command
This commit is contained in:
parent
6a72f0bff6
commit
0a774ad2d9
1 changed files with 1 additions and 1 deletions
|
@ -337,7 +337,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