Compare commits

..

2 Commits

Author SHA1 Message Date
John Lancaster 4046d272fa fixed option 2026-03-28 19:26:53 -05:00
John Lancaster 1da4c5d75f moved test-build 2026-03-28 19:26:43 -05:00
2 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -16,7 +16,7 @@
allowUnfree = true; allowUnfree = true;
}; };
flakeDir = "${config.home-manager.users.john.home.homeDirectory}/Documents/dendritic"; rebuild.flakeDir = "${config.home-manager.users.john.home.homeDirectory}/Documents/dendritic";
networking = { networking = {
hostName = hostname; hostName = hostname;
+10 -9
View File
@@ -29,15 +29,6 @@
${lib.getExe git} -C ${flakeDir} add ${flakeDir}/flake.lock > /dev/null 2>&1 ${lib.getExe git} -C ${flakeDir} add ${flakeDir}/flake.lock > /dev/null 2>&1
${lib.getExe nfs} ${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} ${nixBin} flake update --flake ${flakeDir}
${lib.getExe nhms} ${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
'')
]; ];
}; };
}; };