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:
parent
913e7b41bb
commit
4dbef48565
1 changed files with 4 additions and 4 deletions
|
@ -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} \
|
||||||
|
|
Loading…
Reference in a new issue