summaryrefslogtreecommitdiffstats
path: root/krebs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2021-01-24 15:58:25 +0100
committerlassulus <lassulus@lassul.us>2021-01-24 15:58:25 +0100
commit1bbeb1e45c155c4d9822d40db1b39995e861c292 (patch)
treef5fa852439a41ca3343d125fd805555eeed7e51e /krebs
parent5d24d8e8c2e1493020ff79193bb8480ed882bb03 (diff)
krops: add populate command
Diffstat (limited to 'krebs')
-rw-r--r--krebs/krops.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/krebs/krops.nix b/krebs/krops.nix
index 5e5a3d5e7..aeb2413a4 100644
--- a/krebs/krops.nix
+++ b/krebs/krops.nix
@@ -68,6 +68,13 @@
target = "root@${target}/var/src";
};
+ # 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;