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;
|
||||
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} \
|
||||
|
|
Loading…
Reference in a new issue