Add lib.mkDefault for non configurable defaults
This commit is contained in:
parent
8c976e97e2
commit
1a518fa79a
4 changed files with 14 additions and 11 deletions
|
|
@ -34,8 +34,8 @@ in {
|
|||
};
|
||||
|
||||
nix = {
|
||||
extraOptions = lib.mkIf (config ? sops.secrets && config.sops.secrets ? access.path) ''
|
||||
extraOptions = lib.mkDefault (lib.mkIf (config ? sops.secrets && config.sops.secrets ? access.path) ''
|
||||
!include ${config.sops.secrets.access.path}
|
||||
'';
|
||||
'');
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue