Merge pull request #102 from NickCao/master

add readonly option sopsFileHash
This commit is contained in:
Jörg Thalheim 2021-07-07 16:58:06 +01:00 committed by GitHub
commit 87a27217b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {