Compare commits
2 Commits
9e8c782f88
...
4046d272fa
| Author | SHA1 | Date | |
|---|---|---|---|
| 4046d272fa | |||
| 1da4c5d75f |
@@ -16,7 +16,7 @@
|
||||
allowUnfree = true;
|
||||
};
|
||||
|
||||
flakeDir = "${config.home-manager.users.john.home.homeDirectory}/Documents/dendritic";
|
||||
rebuild.flakeDir = "${config.home-manager.users.john.home.homeDirectory}/Documents/dendritic";
|
||||
|
||||
networking = {
|
||||
hostName = hostname;
|
||||
|
||||
@@ -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
|
||||
'')
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user