diff options
| author | Freya Murphy <freya@freyacat.org> | 2026-02-18 22:03:26 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2026-02-18 22:03:46 -0500 |
| commit | 0cf4bac8d8b5a6b3ecf914f14663cb00d4cb235b (patch) | |
| tree | c2daf12b24a85cdfd00ba6b4800a8db311ef5221 /system/default.nix | |
| parent | update commit more (fix thinkpad) (diff) | |
| download | dotfiles-nix-0cf4bac8d8b5a6b3ecf914f14663cb00d4cb235b.tar.gz dotfiles-nix-0cf4bac8d8b5a6b3ecf914f14663cb00d4cb235b.tar.bz2 dotfiles-nix-0cf4bac8d8b5a6b3ecf914f14663cb00d4cb235b.zip | |
Diffstat (limited to 'system/default.nix')
| -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 |