summaryrefslogtreecommitdiff
path: root/modules/nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/nix')
-rw-r--r--modules/nix/default.nix14
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"