From 4858886710681669b378079fc67309b3dcd4bba4 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Mon, 18 Sep 2023 10:10:01 -0400 Subject: [PATCH] global/nix: replace if with optionalString --- modules/global/nix.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/global/nix.nix b/modules/global/nix.nix index 8be9c8b..8466113 100644 --- a/modules/global/nix.nix +++ b/modules/global/nix.nix @@ -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 = {