diff --git a/modules/nix-tools/rebuild.nix b/modules/nix-tools/rebuild.nix index 4c452be..491f902 100644 --- a/modules/nix-tools/rebuild.nix +++ b/modules/nix-tools/rebuild.nix @@ -29,15 +29,6 @@ ${lib.getExe git} -C ${flakeDir} add ${flakeDir}/flake.lock > /dev/null 2>&1 ${lib.getExe nfs} '') - (writeShellScriptBin "test-build" '' - if [ -z "$1" ]; then - HOSTNAME=${hostnameCmd} - else - HOSTNAME="$1" - fi - ${echoCmd} "Testing the evaulation of the nixos config for $HOSTNAME" - ${lib.getExe nix} eval ${flakeDir}#nixosConfigurations.$HOSTNAME.config.system.build.toplevel.drvPath - '') ]; }; }; @@ -86,6 +77,16 @@ ${nixBin} flake update --flake ${flakeDir} ${lib.getExe nhms} '') + + (writeShellScriptBin "test-build" '' + if [ -z "$1" ]; then + HOSTNAME=${hostnameCmd} + else + HOSTNAME="$1" + fi + ${echoCmd} "Testing the evaulation of the nixos config for $HOSTNAME" + ${lib.getExe nix} eval ${flakeDir}#nixosConfigurations.$HOSTNAME.config.system.build.toplevel.drvPath + '') ]; }; };