feat(secrets): add shared secrets
This commit is contained in:
parent
4c9b7ac9e2
commit
7efd6d5b84
8 changed files with 29 additions and 21 deletions
|
@ -16,6 +16,14 @@
|
|||
inherit (_config.age.secrets.${name}) path;
|
||||
};
|
||||
|
||||
setupSharedSecrets = _config: {
|
||||
secrets,
|
||||
extra ? {},
|
||||
}: {
|
||||
generate = {age.secrets = lib.genAttrs secrets (name: extra // {file = ../secrets/shared/${name}.age;});};
|
||||
get = name: _config.age.secrets.${name}.path;
|
||||
};
|
||||
|
||||
mkMinecraftServer = _config: {
|
||||
name,
|
||||
port,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue