1
0
Fork 0
mirror of https://cgit.krebsco.de/krops synced 2024-11-23 03:29:48 +01:00

pkgs write{Deploy,Test}: pass force to populate

This commit is contained in:
lassulus 2018-09-29 23:15:43 +02:00
parent 913e7b41bb
commit 4dbef48565

View file

@ -16,22 +16,22 @@ in
];
};
writeDeploy = name: { source, target }: let
writeDeploy = name: { force ? false, source, target }: let
target' = lib.mkTarget target;
in
writeDash name ''
set -efu
${populate { inherit source; target = target'; }}
${populate { inherit force source; target = target'; }}
${rebuild target'}
'';
writeTest = name: { source, target }: let
writeTest = name: { force ? false, source, target }: let
target' = lib.mkTarget target;
in
assert lib.isLocalTarget target';
writeDash name ''
set -efu
${populate { inherit source; target = target'; }}
${populate { inherit force source; target = target'; }}
${nix}/bin/nix-build \
-A system \
-I ${target'.path} \