global/nix: replace if with optionalString
This commit is contained in:
parent
ec24677e6b
commit
4858886710
1 changed files with 2 additions and 2 deletions
|
@ -55,9 +55,9 @@ with lib;
|
|||
keep-outputs = true
|
||||
keep-derivations = true
|
||||
fallback = true
|
||||
'' + (if config.modules.secrets.enable then ''
|
||||
'' + (optionalString config.modules.secrets.enable ''
|
||||
secret-key-files = ${config.secrets.binary-cache-private-key}
|
||||
'' else "");
|
||||
'');
|
||||
};
|
||||
|
||||
nixpkgs.config = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue