summaryrefslogtreecommitdiffstats
path: root/lass
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2018-11-20 01:16:22 +0100
committerlassulus <lassulus@lassul.us>2018-11-20 01:16:22 +0100
commit33b07da6390deb0541066c2c7847f07f9394f4c1 (patch)
tree3723817d3953f0f887cc98c027e074c25862377b /lass
parent64e435e25e830b4be12062c1538db643c17822df (diff)
l krops: add populate
Diffstat (limited to 'lass')
-rw-r--r--lass/krops.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/lass/krops.nix b/lass/krops.nix
index a898164c3..758c2a7d4 100644
--- a/lass/krops.nix
+++ b/lass/krops.nix
@@ -21,12 +21,20 @@
];
in {
+
# usage: $(nix-build --no-out-link --argstr name HOSTNAME -A deploy)
deploy = { target ? "root@${name}/var/src" }: pkgs.krops.writeDeploy "${name}-deploy" {
source = source { test = false; };
inherit target;
};
+ # usage: $(nix-build --no-out-link --argstr name HOSTNAME --argstr target PATH -A populate)
+ populate = { target, force ? false }: pkgs.populate {
+ inherit force;
+ source = source { test = false; };
+ target = lib.mkTarget target;
+ };
+
# usage: $(nix-build --no-out-link --argstr name HOSTNAME --argstr target PATH -A test)
test = { target }: pkgs.krops.writeTest "${name}-test" {
force = true;