From 2f4b5e59fec745efed02226d829609c044994308 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Thu, 29 Jan 2026 15:22:28 +0100 Subject: [PATCH] nixos/system-nixconf: disable prompt to accept-flake-config --- nix/nixosModules/common/system-nixconf.nix | 4 ++++ 1 file changed, 4 insertions(+) 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);