Light refactor, enable parallelism for nix building, builders use substitute and make sure darwin has the same benefits as linux
This commit is contained in:
parent
3683e93dbc
commit
1cfdfda52d
3 changed files with 28 additions and 17 deletions
|
|
@ -96,12 +96,7 @@
|
|||
inherit system;
|
||||
pkgs = pkgs;
|
||||
modules = [
|
||||
{
|
||||
nix.settings.experimental-features = "nix-command flakes";
|
||||
environment.systemPackages = with pkgs; [
|
||||
vim
|
||||
];
|
||||
}
|
||||
./nix/system/common/nix.nix
|
||||
./nix/system/local.nix
|
||||
] ++ extraModules;
|
||||
|
||||
|
|
|
|||
27
nix/system/common/nix.nix
Normal file
27
nix/system/common/nix.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
vim
|
||||
];
|
||||
|
||||
nix = {
|
||||
settings = {
|
||||
experimental-features = "nix-command flakes";
|
||||
auto-optimise-store = true;
|
||||
max-jobs = "auto";
|
||||
cores = 0;
|
||||
|
||||
builders-use-substitutes = true;
|
||||
};
|
||||
|
||||
extraOptions = ''
|
||||
keep-going = true
|
||||
'';
|
||||
|
||||
gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 7d";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -37,17 +37,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
nix = {
|
||||
settings = {
|
||||
auto-optimise-store = true;
|
||||
};
|
||||
gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 7d";
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
pipewire = {
|
||||
enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue