Add garbage collection for better disk management

This commit is contained in:
2025-09-24 19:04:35 +02:00
parent c7016ba717
commit 4aca1f47e3
3 changed files with 39 additions and 44 deletions

View File

@@ -20,6 +20,7 @@
]; ];
networking.hostName = "minoxy"; networking.hostName = "minoxy";
enableCuda = true;
systemd.targets.sleep.enable = true; systemd.targets.sleep.enable = true;
systemd.targets.suspend.enable = true; systemd.targets.suspend.enable = true;

View File

@@ -1,54 +1,46 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
# Basic services # Basic services
services.locate.enable = true; services.locate.enable = true;
services.openssh.enable = true; services.openssh.enable = true;
# Nix fun # Nix fun
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
nix.settings.experimental-features = ["flakes" "nix-command"]; nix.settings.experimental-features = [ "flakes" "nix-command" ];
time.timeZone = "Europe/Berlin"; time.timeZone = "Europe/Berlin";
programs.nix-ld.enable = true; # Linking support programs.nix-ld.enable = true; # Linking support
# For local domains in link locals and other goods # For local domains in link locals and other goods
services.avahi.enable = true; services.avahi.enable = true;
services.avahi.nssmdns4 = true; services.avahi.nssmdns4 = true;
environment = { environment = { systemPackages = with pkgs; [ git starship zoxide rsync ]; };
systemPackages = with pkgs; [
git
starship
zoxide
rsync
];
};
networking = { nix.optimise.automatic = true;
networkmanager = {
enable = true;
};
};
i18n.defaultLocale = "en_US.UTF-8"; nix.gc = {
console = { automatic = true;
font = "Lat2-Terminus16"; dates = "weekly";
keyMap = "us"; options = "--delete-older-than 14d"; # Two weeks cache then forget
}; };
programs.zsh = { networking = { networkmanager = { enable = true; }; };
enable = true;
autosuggestions.enable = true; i18n.defaultLocale = "en_US.UTF-8";
ohMyZsh = { console = {
enable = true; font = "Lat2-Terminus16";
plugins = [ keyMap = "us";
"history-substring-search" };
"git"
"zoxide" programs.zsh = {
"vi-mode" enable = true;
"systemadmin" autosuggestions.enable = true;
]; ohMyZsh = {
}; enable = true;
}; plugins =
[ "history-substring-search" "git" "zoxide" "vi-mode" "systemadmin" ];
};
};
} }

View File

@@ -31,12 +31,14 @@ in {
}; };
# Apply CUDA-specific settings if enabled # Apply CUDA-specific settings if enabled
nixpkgs.config.cudaSupport = config.enableCuda; # Dont do all as this has ridiculous high build times
#nixpkgs.config.cudaSupport = config.enableCuda;
hardware.enableAllFirmware = config.enableCuda; hardware.enableAllFirmware = config.enableCuda;
environment.systemPackages = (if config.enableCuda then environment.systemPackages = (if config.enableCuda then [
[ (pkgs.blender.override { cudaSupport = true; }) ] (pkgs.blender.override { cudaSupport = true; })
else (pkgs.ollama.override { acceleration = "cuda"; })
] else
[ ]); [ ]);
}; };
} }