From 451783d5c4ac227726bc122c6ee419b4dfd6f3fa Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Mon, 6 Oct 2025 02:03:40 +0530 Subject: [PATCH] chore(nixos): limit parallel jobs and set cores in config files --- Makefile | 2 +- nixos/mirai/configuration.nix | 2 ++ nixos/ryu/configuration.nix | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 13410f52..9543af67 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ home: nix --extra-experimental-features "nix-command flakes" run home-manager/master -- switch --flake .#mirai -b backup nixos: - sudo nixos-rebuild switch --flake . + sudo nixos-rebuild switch --flake . -j 1 deck: nix run home-manager/master -- switch --flake .#deck diff --git a/nixos/mirai/configuration.nix b/nixos/mirai/configuration.nix index 64520764..a7b1fa73 100644 --- a/nixos/mirai/configuration.nix +++ b/nixos/mirai/configuration.nix @@ -38,6 +38,8 @@ nix = { settings = { + max-jobs = 1; + cores = 8; auto-optimise-store = true; extra-experimental-features = "nix-command flakes auto-allocate-uids"; trusted-users = ["root" "fs0c131y" "remotebuilder"]; diff --git a/nixos/ryu/configuration.nix b/nixos/ryu/configuration.nix index 14701132..0989b095 100644 --- a/nixos/ryu/configuration.nix +++ b/nixos/ryu/configuration.nix @@ -43,6 +43,8 @@ nix = { settings = { + max-jobs = 1; + cores = 12; auto-optimise-store = true; extra-experimental-features = "nix-command flakes auto-allocate-uids"; trusted-users = ["root" "servius"];