From 176bdcf34ba915bb5188b3678b90775380f0b33c Mon Sep 17 00:00:00 2001 From: David Arnold Date: Mon, 11 Jan 2021 19:36:48 -0500 Subject: [PATCH] Fix realod better fix for #75 --- shell.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/shell.nix b/shell.nix index e8b214b4..f18b7bf2 100644 --- a/shell.nix +++ b/shell.nix @@ -7,7 +7,6 @@ let in { pkgs ? pkgs', ... }: let - configs = "${toString ./.}#nixosConfigurations"; build = "config.system.build"; installPkgs = (import "${nixpkgs}/nixos" { @@ -19,7 +18,7 @@ let if [[ -z "$1" ]]; then echo "Usage: $(basename "$0") [ iso | install {host} | {host} [switch|boot|test] ]" elif [[ "$1" == "iso" ]]; then - nix build ${configs}.niximg.${build}.isoImage "${"\${@:2}"}" + nix build $DEVSHELL_ROOT#nixosConfigurations.niximg.${build}.isoImage "${"\${@:2}"}" elif [[ "$1" == "install" ]]; then sudo nixos-install --flake ".#$2" "${"\${@:3}"}" else