mirror of
https://github.com/Mic92/sops-nix.git
synced 2025-03-31 04:14:37 +00:00
add readonly option sopsFileHash
This commit is contained in:
parent
c4f7025e5d
commit
0d957142b6
1 changed files with 8 additions and 0 deletions
|
@ -70,6 +70,14 @@ let
|
|||
Sops file the secret is loaded from.
|
||||
'';
|
||||
};
|
||||
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.
|
||||
'';
|
||||
};
|
||||
};
|
||||
});
|
||||
manifest = pkgs.writeText "manifest.json" (builtins.toJSON {
|
||||
|
|
Loading…
Add table
Reference in a new issue