meta: Avoid building rbw-bitw for all hosts

This commit is contained in:
kat witch 2021-09-04 19:34:09 +01:00
parent a23c94f597
commit b154039b72
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
5 changed files with 28 additions and 54 deletions

17
meta.nix Normal file
View file

@ -0,0 +1,17 @@
{ config, pkgs, lib, root, ... }: {
runners = {
lazy = {
file = root;
args = [ "--show-trace" ];
};
};
kw.secrets.command =
let
bitw = pkgs.writeShellScriptBin "bitw" ''${pkgs.rbw-bitw}/bin/bitw -p gpg://${config.network.nodes.${builtins.getEnv "HOME_HOSTNAME"}.kw.secrets.repo.bitw.source} "$@"'';
in
"${bitw}/bin/bitw get";
deploy.targets.dummy.enable = false;
_module.args.pkgs = lib.mkDefault pkgs;
}