mirror of
https://github.com/elitak/nixos-infect.git
synced 2024-12-22 16:18:29 +03: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}"
|
export NIXOS_CONFIG="${NIXOS_CONFIG:-/etc/nixos/configuration.nix}"
|
||||||
|
|
||||||
nix-env --set \
|
nix-env --set \
|
||||||
-I nixpkgs=$HOME/.nix-defexpr/channels/nixos \
|
-I nixpkgs=$(realpath $HOME/.nix-defexpr/channels/nixos) \
|
||||||
-f '<nixpkgs/nixos>' \
|
-f '<nixpkgs/nixos>' \
|
||||||
-p /nix/var/nix/profiles/system \
|
-p /nix/var/nix/profiles/system \
|
||||||
-A system
|
-A system
|
||||||
|
|
Loading…
Reference in a new issue