diff options
Diffstat (limited to '')
| -rw-r--r-- | system/default.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/system/default.nix b/system/default.nix index aba8c11..e912856 100644 --- a/system/default.nix +++ b/system/default.nix @@ -32,6 +32,8 @@ experimental-features = ["nix-command" "flakes"]; use-xdg-base-directories = true; trusted-users = ["root" "@wheel"]; + max-jobs = config.cores / 4; + cores = (config.cores - 2) / config.nix.settings.max-jobs; }; }; @@ -39,6 +41,11 @@ nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) config.unfreePackages; + # load overlays + nixpkgs.overlays = [ + (final: _: import ../pkgs {pkgs = final;}) + ]; + # set state version system.stateVersion = config.stateVersion; @@ -112,6 +119,7 @@ }; # use the latest kernel + boot.kernelPackages = pkgs.linuxPackages_latest; # sysrq |