nixos/system-nixconf: disable prompt to accept-flake-config

This commit is contained in:
Primrose 2026-01-29 15:22:28 +01:00
parent f8aae6bd65
commit 2f4b5e59fe
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA

View file

@ -8,6 +8,10 @@
package = lib.mkDefault pkgs.nix; package = lib.mkDefault pkgs.nix;
settings = { 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 # Try to have at least 10GB of space by default
min-free = lib.mkDefault (5 * 1024 * 1024 * 1024); min-free = lib.mkDefault (5 * 1024 * 1024 * 1024);
max-free = lib.mkDefault (10 * 1024 * 1024 * 1024); max-free = lib.mkDefault (10 * 1024 * 1024 * 1024);