mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
meta: Avoid building rbw-bitw for all hosts
This commit is contained in:
parent
a23c94f597
commit
b154039b72
5 changed files with 28 additions and 54 deletions
17
meta.nix
Normal file
17
meta.nix
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue