diff options
| author | Fuwn <[email protected]> | 2024-09-19 08:26:00 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-09-19 08:26:00 -0700 |
| commit | ac995ac9d3125170d9cf3f8694b3d44f7df6d800 (patch) | |
| tree | c9df0ccbad4ea18d235583f3bce56aab6d6e22b8 | |
| parent | nix: update cgroups usage (diff) | |
| download | nixos-config-ac995ac9d3125170d9cf3f8694b3d44f7df6d800.tar.xz nixos-config-ac995ac9d3125170d9cf3f8694b3d44f7df6d800.zip | |
nix: more settings
| -rw-r--r-- | modules/nix/default.nix | 14 |
1 files changed, 11 insertions, 3 deletions
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" |