From bb860e3e119ee6d043896544de560cd05096a421 Mon Sep 17 00:00:00 2001 From: Curtis Jiang Date: Sun, 17 Apr 2022 17:46:26 -0400 Subject: [PATCH] misc: fix nix.conf generation (#2824) nix/nix.conf should generate if cfg.extraOptions is not empty. --- modules/misc/nix.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/misc/nix.nix b/modules/misc/nix.nix index e722c7d9..7214ac4b 100644 --- a/modules/misc/nix.nix +++ b/modules/misc/nix.nix @@ -230,7 +230,9 @@ in { }; }; - "nix/nix.conf" = mkIf (cfg.settings != { }) { source = nixConf; }; + "nix/nix.conf" = mkIf (cfg.settings != { } || cfg.extraOptions != "") { + source = nixConf; + }; }; };