️ Improve hardware support and performance through various modifications
Some checks failed
Trufflehog: check for exposed secrets / Run trufflehog (push) Has been cancelled
Nix: check for unused code / Run deadnix (push) Has been cancelled
Nix: validate flake.lock / Check Lockfile (push) Has been cancelled
Nix: validate flake / Validate x86_64-linux (push) Has been cancelled

This commit is contained in:
Jo 2025-09-02 22:05:47 +02:00
parent a95bef51b8
commit a6da14d4cf
7 changed files with 205 additions and 92 deletions

View file

@ -24,8 +24,12 @@ in
config = mkIf cfg.enable {
nix = {
optimise = {
automatic = true;
dates = [ "03:45" ];
};
settings = {
auto-optimise-store = true;
builders-use-substitutes = true;
experimental-features = [
"nix-command"
@ -35,7 +39,8 @@ in
keep-derivations = true;
keep-outputs = true;
max-jobs = "auto";
cores = 2;
max-jobs = 8;
warn-dirty = false;
trusted-users = cfg.trusted-users;
@ -44,7 +49,7 @@ in
# Garbage collection configuration.
gc = {
automatic = true;
dates = "daily";
dates = "weekly";
options = "--delete-older-than 3d";
};