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:
commit
441227c4fd
1 changed files with 4 additions and 1 deletions
|
@ -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.
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue