updated config.nix

This commit is contained in:
serenity-F 2025-05-31 16:19:59 +10:00
parent bbc78faeea
commit 0dca9268d3
2 changed files with 17 additions and 14 deletions

View file

@ -35,36 +35,30 @@
## Settings for the nix package manager and daemon ## Settings for the nix package manager and daemon
nix = { nix = {
settings = { settings = {
cores = 0; # sets nix to use all available cores during rebuild cores = 6; # sets nix to use all available cores during rebuild
max-jobs = "auto"; # automatically determines max job count max-jobs = "auto"; # automatically determines max job count
allow-dirty = false; # refuses to allow rebuilds when git tree is dirty allow-dirty = false; # refuses to allow rebuilds when git tree is dirty
auto-optimise-store = true; # automatically optimised nix store on rebuild auto-optimise-store = true; # automatically optimised nix store on rebuild
download-buffer-size = [ download-buffer-size = [ # increased download buffer as it caused issues previously
"268435456" "268435456"
]; # increased download buffer as it caused issues previously ];
allowed-users = [ "@wheel" ]; # restricts `nix` command to @wheel allowed-users = [ "@wheel" ]; # restricts `nix` command to @wheel
trusted-users = [ trusted-users = [ # adds root, @wheel, and ${primaryUser} to trusted users
"root" "root"
"@wheel" "@wheel"
"${primaryUser}" "${primaryUser}"
]; # adds root, @wheel, and ${primaryUser} to trusted users ];
experimental-features = [ # Enable flakes uwu,,, and some other junk idek experimental-features = [ # enable flakes uwu,,, and some other junk idek
"pipe-operators" # who tf knows "pipe-operators" # who tf knows
"recursive-nix" # honestly I cannot rember "recursive-nix" # honestly I cannot rember
"nix-command" # useful nya "nix-command" # useful nya
"flakes" # flakes are vv important nya "flakes" # flakes are vv important nya
]; ];
## Substiters for packages either not in or out of date in nixpkgs
substituters = [ ];
trusted-public-keys = [ ];
}; };
gc = { # garbage collection
## Nix garbage collection
gc = {
automatic = true; # do garbage collection automagically automatic = true; # do garbage collection automagically
dates = "daily"; # every day dates = "daily"; # every day
options = "--delete-older-than 7d"; # and clear junk older than x days options = "--delete-older-than 3d"; # and clear junk older than x days
#persistent = true; # https://mynixos.com/nixpkgs/option/nix.gc.persistent #persistent = true; # https://mynixos.com/nixpkgs/option/nix.gc.persistent
}; };
}; };

View file

@ -39,6 +39,15 @@
]; ];
}; };
## Nix settings for package related stuff
nix = {
settings = {
substituters = [ # for pkgs not in or out of date in nixpkgs
];
trusted-public-keys = [ ];
};
};
## System-level Programs ## System-level Programs
programs = { programs = {
git = { enable = true; }; # Mandatory version control git = { enable = true; }; # Mandatory version control