Fix error
This commit is contained in:
parent
74b2052739
commit
8b45e11196
|
@ -18,7 +18,7 @@ let
|
||||||
say [i|### Build failure for ${name} config for #{hostname} ###|]
|
say [i|### Build failure for ${name} config for #{hostname} ###|]
|
||||||
cat logFile
|
cat logFile
|
||||||
say [i|Trying to build ${name} config for #{hostname}. Logging to #{logFile}.|]
|
say [i|Trying to build ${name} config for #{hostname}. Logging to #{logFile}.|]
|
||||||
onException command
|
onException command failHandler
|
||||||
say [i|Build of ${name} config for #{hostname} was successful.|]
|
say [i|Build of ${name} config for #{hostname} was successful.|]
|
||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
|
@ -27,17 +27,13 @@ in {
|
||||||
name = "test-system-config";
|
name = "test-system-config";
|
||||||
inherit bins;
|
inherit bins;
|
||||||
inherit imports;
|
inherit imports;
|
||||||
} (haskellBody "system" ''
|
} (haskellBody "system" ''nix_build $ ["<nixpkgs/nixos>", "-A", "system"] ++ paths ++ ["-I", [i|nixos-config=#{configDir}/hosts/#{hostname}/configuration.nix|], "-o", [i|result-system-#{hostname}|]] ++ fmap toString args'');
|
||||||
nix_build $ ["<nixpkgs/nixos>", "-A", "system"] ++ paths ++ ["-I", [i|nixos-config=#{configDir}/hosts/#{hostname}/configuration.nix|], "-o", [i|result-system-#{hostname}|]] ++ fmap toString args
|
|
||||||
'');
|
|
||||||
|
|
||||||
test-home-config = self.writeHaskellScript {
|
test-home-config = self.writeHaskellScript {
|
||||||
name = "test-home-config";
|
name = "test-home-config";
|
||||||
inherit bins;
|
inherit bins;
|
||||||
inherit imports;
|
inherit imports;
|
||||||
} (haskellBody "home" ''
|
} (haskellBody "home" ''nix_build $ paths ++ [[i|#{configDir}/home/target.nix|], "-A", hostname, "-o", [i|result-home-manager-#{hostname}|]] ++ fmap toString args'');
|
||||||
nix_build $ paths ++ [[i|#{configDir}/home/target.nix|], "-A", hostname, "-o", [i|result-home-manager-#{hostname}|]] ++ fmap toString args
|
|
||||||
'');
|
|
||||||
|
|
||||||
test-config = self.writeHaskellScript {
|
test-config = self.writeHaskellScript {
|
||||||
name = "test-config";
|
name = "test-config";
|
||||||
|
|
Loading…
Reference in a new issue