From 0a774ad2d99a6302ab8319359205892d51e96820 Mon Sep 17 00:00:00 2001 From: Jonah Bron Date: Tue, 30 Jan 2024 07:09:45 +0000 Subject: [PATCH] Resolved symlink to nixpkgs channel before passing to nix-env command --- nixos-infect | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos-infect b/nixos-infect index 2544433..fb83cd7 100644 --- a/nixos-infect +++ b/nixos-infect @@ -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 '' \ -p /nix/var/nix/profiles/system \ -A system