diff --git a/nix/nixosModules/common/system-nixconf.nix b/nix/nixosModules/common/system-nixconf.nix index fdfb8d20..cbce71b6 100644 --- a/nix/nixosModules/common/system-nixconf.nix +++ b/nix/nixosModules/common/system-nixconf.nix @@ -8,6 +8,10 @@ package = lib.mkDefault pkgs.nix; settings = { + # it is impossible to anser in nix-direnv, so we force it to off. + # https://github.com/nix-community/nix-direnv/issues/678 + accept-flake-config = lib.mkForce false; + # Try to have at least 10GB of space by default min-free = lib.mkDefault (5 * 1024 * 1024 * 1024); max-free = lib.mkDefault (10 * 1024 * 1024 * 1024);