From 0dca9268d36a7b24fe11406711a7edfc8d19aa29 Mon Sep 17 00:00:00 2001 From: serenity-F Date: Sat, 31 May 2025 16:19:59 +1000 Subject: [PATCH] updated `config.nix` --- core/default.nix | 22 ++++++++-------------- core/packages.nix | 9 +++++++++ 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/core/default.nix b/core/default.nix index 9540a6e..6ddf292 100755 --- a/core/default.nix +++ b/core/default.nix @@ -35,36 +35,30 @@ ## Settings for the nix package manager and daemon nix = { 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 allow-dirty = false; # refuses to allow rebuilds when git tree is dirty 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" - ]; # increased download buffer as it caused issues previously + ]; allowed-users = [ "@wheel" ]; # restricts `nix` command to @wheel - trusted-users = [ + trusted-users = [ # adds root, @wheel, and ${primaryUser} to trusted users "root" "@wheel" "${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 "recursive-nix" # honestly I cannot rember "nix-command" # useful nya "flakes" # flakes are vv important nya ]; - - ## Substiters for packages either not in or out of date in nixpkgs - substituters = [ ]; - trusted-public-keys = [ ]; }; - - ## Nix garbage collection - gc = { + gc = { # garbage collection automatic = true; # do garbage collection automagically 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 }; }; diff --git a/core/packages.nix b/core/packages.nix index 3f46f55..5fd4b1f 100755 --- a/core/packages.nix +++ b/core/packages.nix @@ -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 programs = { git = { enable = true; }; # Mandatory version control