diff --git a/modules/misc/nix.nix b/modules/misc/nix.nix index e722c7d99..7214ac4b3 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; + }; }; };