From 1bbeb1e45c155c4d9822d40db1b39995e861c292 Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 24 Jan 2021 15:58:25 +0100 Subject: krops: add populate command --- krebs/krops.nix | 7 +++++++ 1 file changed, 7 insertions(+) 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; -- cgit v1.2.3