1
0
Fork 0
mirror of https://cgit.krebsco.de/krops synced 2024-11-26 21:19:47 +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; target' = lib.mkTarget target;
in in
writeDash name '' writeDash name ''
set -efu set -efu
${populate { inherit source; target = target'; }} ${populate { inherit force source; target = target'; }}
${rebuild target'} ${rebuild target'}
''; '';
writeTest = name: { source, target }: let writeTest = name: { force ? false, source, target }: let
target' = lib.mkTarget target; target' = lib.mkTarget target;
in in
assert lib.isLocalTarget target'; assert lib.isLocalTarget target';
writeDash name '' writeDash name ''
set -efu set -efu
${populate { inherit source; target = target'; }} ${populate { inherit force source; target = target'; }}
${nix}/bin/nix-build \ ${nix}/bin/nix-build \
-A system \ -A system \
-I ${target'.path} \ -I ${target'.path} \