feat(secrets): auto-add secrets, create path shortcut
This commit is contained in:
parent
44e85b3ee3
commit
56c459e49f
5 changed files with 19 additions and 6 deletions
|
@ -23,6 +23,8 @@ in
|
|||
monitors = mkOpt int 1;
|
||||
graphical = mkBoolOpt config.services.xserver.enable;
|
||||
};
|
||||
|
||||
secrets = mkOpt (attrsOf path) { };
|
||||
};
|
||||
|
||||
config = {
|
||||
|
@ -40,5 +42,7 @@ in
|
|||
environment.variables = mkAliasDefinitions options.env;
|
||||
|
||||
bud.localFlakeClone = config.dotfiles.dir;
|
||||
|
||||
secrets = mapAttrs (n: v: v.path) config.age.secrets;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue