1
0
Fork 0
mirror of https://github.com/Mic92/sops-nix.git synced 2024-12-14 11:57:52 +00:00

Merge pull request #89 from Ma27/manual-rebuild

module: Don't set option-value as option-default
This commit is contained in:
Jörg Thalheim 2021-04-04 07:49:48 +01:00 committed by GitHub
commit 441227c4fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,6 +6,9 @@ let
cfg = config.sops;
users = config.users.users;
secretType = types.submodule ({ config, ... }: {
config = {
sopsFile = lib.mkOptionDefault cfg.defaultSopsFile;
};
options = {
name = mkOption {
type = types.str;
@ -62,7 +65,7 @@ let
};
sopsFile = mkOption {
type = types.path;
default = cfg.defaultSopsFile;
defaultText = "\${config.sops.defaultSopsFile}";
description = ''
Sops file the secret is loaded from.
'';