global/nix: replace if with optionalString

This commit is contained in:
Infinidoge 2023-09-18 10:10:01 -04:00
parent ec24677e6b
commit 4858886710

View file

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