Skip to content

Commit

Permalink
refactor(config): make nix max-jobs and cores setting per-host
Browse files Browse the repository at this point in the history
  • Loading branch information
zakuciael committed Sep 3, 2024
1 parent 1fa142f commit 913f143
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 0 additions & 2 deletions configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ with lib.my; {
# NixOS configuration
nix = {
settings = {
max-jobs = 6;
cores = 6;
auto-optimise-store = true;
substituters = [
"https://cache.thalheim.io"
Expand Down
5 changes: 5 additions & 0 deletions hosts/laptop/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ with lib.my.utils; let
in {
imports = [./hardware.nix ./networking.nix];

nix.settings = {
max-jobs = 4;
cores = 2;
};

environment = {
variables = {
FLAKE = "/home/${username}/dev/config/nixos-dotfiles";
Expand Down
5 changes: 5 additions & 0 deletions hosts/pc/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ with lib.my.utils; let
in {
imports = [./hardware.nix ./networking.nix];

nix.settings = {
max-jobs = 6;
cores = 6;
};

environment = {
variables = {
FLAKE = "/home/${username}/dev/config/nixos-dotfiles";
Expand Down

0 comments on commit 913f143

Please sign in to comment.