mirror of
https://github.com/Mic92/sops-nix.git
synced 2025-12-26 22:24:59 +08:00
commit
ec2800174d
1 changed files with 2 additions and 2 deletions
|
|
@ -8,6 +8,7 @@ let
|
|||
secretType = types.submodule ({ config, ... }: {
|
||||
config = {
|
||||
sopsFile = lib.mkOptionDefault cfg.defaultSopsFile;
|
||||
sopsFileHash = mkOptionDefault (optionalString cfg.validateSopsFiles "${builtins.hashFile "sha256" config.sopsFile}");
|
||||
};
|
||||
options = {
|
||||
name = mkOption {
|
||||
|
|
@ -73,9 +74,8 @@ let
|
|||
sopsFileHash = mkOption {
|
||||
type = types.str;
|
||||
readOnly = true;
|
||||
default = if cfg.validateSopsFiles then "${builtins.hashFile "sha256" config.sopsFile}" else "";
|
||||
description = ''
|
||||
Hash of the sops file, useful in systemd.services.<name>.restartTriggers.
|
||||
Hash of the sops file, useful in <xref linkend="opt-systemd.services._name_.restartTriggers" />.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue