krops: add populate command

This commit is contained in:
lassulus 2021-01-24 15:58:25 +01:00
parent 5d24d8e8c2
commit 1bbeb1e45c

View File

@ -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;