feat: small adjustements to nix config
This commit is contained in:
parent
38200052f9
commit
8df171890d
1 changed files with 9 additions and 0 deletions
|
@ -91,6 +91,7 @@ in {
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
package = pkgs.lix;
|
package = pkgs.lix;
|
||||||
|
channel.enable = false;
|
||||||
|
|
||||||
gc = {
|
gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
|
@ -104,10 +105,18 @@ in {
|
||||||
u.flake = camasca;
|
u.flake = camasca;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# give nix daemon lower priority
|
||||||
|
daemonCPUSchedPolicy = "batch";
|
||||||
|
daemonIOSchedClass = "idle";
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
auto-optimise-store = true;
|
auto-optimise-store = true;
|
||||||
experimental-features = ["nix-command" "flakes"];
|
experimental-features = ["nix-command" "flakes"];
|
||||||
trusted-users = ["root" "@wheel"];
|
trusted-users = ["root" "@wheel"];
|
||||||
|
connect-timeout = 5; # fail fast if substituters are not available
|
||||||
|
builders-use-substitutes = true;
|
||||||
|
log-lines = 25;
|
||||||
|
min-free = 512 * 1024 * 1024; # if free space drops under min, gc
|
||||||
|
|
||||||
substituters = [
|
substituters = [
|
||||||
"https://uku3lig.cachix.org"
|
"https://uku3lig.cachix.org"
|
||||||
|
|
Loading…
Reference in a new issue