don't hog all cores, might OOM, too
This commit is contained in:
parent
2aad01bd62
commit
7f814ad575
|
@ -257,11 +257,18 @@ in
|
||||||
|
|
||||||
# package manager config
|
# package manager config
|
||||||
nix = {
|
nix = {
|
||||||
|
# general settings
|
||||||
|
settings = {
|
||||||
# don't hog all cores, might OOM, too
|
# don't hog all cores, might OOM, too
|
||||||
settings.max-jobs = 4;
|
cores = 2;
|
||||||
|
max-jobs = 2;
|
||||||
|
|
||||||
# auto optimize the store
|
# auto optimize the store
|
||||||
settings.auto-optimise-store = true;
|
auto-optimise-store = true;
|
||||||
|
|
||||||
|
# enable new stuff
|
||||||
|
experimental-features = "nix-command flakes";
|
||||||
|
};
|
||||||
|
|
||||||
# cleanup the store from time to time
|
# cleanup the store from time to time
|
||||||
gc = {
|
gc = {
|
||||||
|
@ -270,9 +277,6 @@ in
|
||||||
options = "--delete-older-than 7d";
|
options = "--delete-older-than 7d";
|
||||||
};
|
};
|
||||||
|
|
||||||
# enable new stuff
|
|
||||||
settings.experimental-features = "nix-command flakes";
|
|
||||||
|
|
||||||
# https://github.com/nix-community/nix-direnv
|
# https://github.com/nix-community/nix-direnv
|
||||||
extraOptions = ''
|
extraOptions = ''
|
||||||
keep-outputs = true
|
keep-outputs = true
|
||||||
|
|
Loading…
Reference in a new issue