mirror of
https://github.com/Mic92/sops-nix.git
synced 2026-02-03 19:48:53 +08:00
parent
517628cc1d
commit
af29ac4d84
3 changed files with 95 additions and 0 deletions
|
|
@ -110,6 +110,7 @@ let
|
|||
# Does this need to be configurable?
|
||||
secretsMountPoint = "/run/secrets.d";
|
||||
symlinkPath = "/run/secrets";
|
||||
keepGenerations = cfg.keepGenerations;
|
||||
gnupgHome = cfg.gnupg.home;
|
||||
sshKeyPaths = cfg.gnupg.sshKeyPaths;
|
||||
ageKeyFile = cfg.age.keyFile;
|
||||
|
|
@ -164,6 +165,14 @@ in {
|
|||
'';
|
||||
};
|
||||
|
||||
keepGenerations = mkOption {
|
||||
type = types.ints.unsigned;
|
||||
default = 1;
|
||||
description = ''
|
||||
Number of secrets generations to keep. Setting this to 0 disables pruning.
|
||||
'';
|
||||
};
|
||||
|
||||
log = mkOption {
|
||||
type = types.listOf (types.enum [ "keyImport" "secretChanges" ]);
|
||||
default = [ "keyImport" "secretChanges" ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue