From 45e2361a9e58a126153afea8ef36e96878b3cdc7 Mon Sep 17 00:00:00 2001 From: Jonah Dahlquist Date: Mon, 11 Mar 2024 08:34:49 -0700 Subject: [PATCH] Resolved symlink to nixpkgs channel before passing to nix-env command (#191) Co-authored-by: Jonah Bron --- nixos-infect | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos-infect b/nixos-infect index 77a3769..8b4f33b 100644 --- a/nixos-infect +++ b/nixos-infect @@ -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 '' \ -p /nix/var/nix/profiles/system \ -A system