From ac995ac9d3125170d9cf3f8694b3d44f7df6d800 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 19 Sep 2024 08:26:00 -0700 Subject: nix: more settings --- modules/nix/default.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'modules/nix') diff --git a/modules/nix/default.nix b/modules/nix/default.nix index 7a24f0a..a55548c 100644 --- a/modules/nix/default.nix +++ b/modules/nix/default.nix @@ -48,11 +48,10 @@ auto-optimise-store = true; http-connections = 0; warn-dirty = false; - log-lines = 50; - sandbox = true; + log-lines = 30; sandbox-fallback = false; - extra-sandbox-paths = [ config.programs.ccache.cacheDir ]; keep-going = true; + connect-timeout = 5; stalled-download-timeout = 20; auto-allocate-uids = true; use-cgroups = pkgs.stdenv.isLinux; @@ -60,6 +59,15 @@ nix-path = lib.mkForce "nixpkgs=flake:nixpkgs"; flake-registry = "${inputs.flake-registry}/flake-registry.json"; trusted-users = [ "@wheel" ]; + max-jobs = "auto"; + extra-platforms = config.boot.binfmt.emulatedSystems; + keep-outputs = true; + + extra-sandbox-paths = [ + config.programs.ccache.cacheDir + "/run/binfmt" + "${pkgs.qemu}" + ]; system-features = [ "nixos-test" -- cgit v1.2.3