mirror of
https://github.com/Ascyii/nixos.git
synced 2025-12-31 22:44:23 -05:00
Add garbage collection for better disk management
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
];
|
||||
|
||||
networking.hostName = "minoxy";
|
||||
enableCuda = true;
|
||||
|
||||
systemd.targets.sleep.enable = true;
|
||||
systemd.targets.suspend.enable = true;
|
||||
|
||||
@@ -1,54 +1,46 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
# Basic services
|
||||
services.locate.enable = true;
|
||||
services.openssh.enable = true;
|
||||
# Basic services
|
||||
services.locate.enable = true;
|
||||
services.openssh.enable = true;
|
||||
|
||||
# Nix fun
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
nix.settings.experimental-features = ["flakes" "nix-command"];
|
||||
# Nix fun
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
nix.settings.experimental-features = [ "flakes" "nix-command" ];
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
programs.nix-ld.enable = true; # Linking support
|
||||
time.timeZone = "Europe/Berlin";
|
||||
programs.nix-ld.enable = true; # Linking support
|
||||
|
||||
# For local domains in link locals and other goods
|
||||
services.avahi.enable = true;
|
||||
services.avahi.nssmdns4 = true;
|
||||
|
||||
environment = {
|
||||
systemPackages = with pkgs; [
|
||||
git
|
||||
starship
|
||||
zoxide
|
||||
rsync
|
||||
];
|
||||
};
|
||||
environment = { systemPackages = with pkgs; [ git starship zoxide rsync ]; };
|
||||
|
||||
networking = {
|
||||
networkmanager = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
nix.optimise.automatic = true;
|
||||
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
console = {
|
||||
font = "Lat2-Terminus16";
|
||||
keyMap = "us";
|
||||
};
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 14d"; # Two weeks cache then forget
|
||||
};
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
autosuggestions.enable = true;
|
||||
ohMyZsh = {
|
||||
enable = true;
|
||||
plugins = [
|
||||
"history-substring-search"
|
||||
"git"
|
||||
"zoxide"
|
||||
"vi-mode"
|
||||
"systemadmin"
|
||||
];
|
||||
};
|
||||
};
|
||||
networking = { networkmanager = { enable = true; }; };
|
||||
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
console = {
|
||||
font = "Lat2-Terminus16";
|
||||
keyMap = "us";
|
||||
};
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
autosuggestions.enable = true;
|
||||
ohMyZsh = {
|
||||
enable = true;
|
||||
plugins =
|
||||
[ "history-substring-search" "git" "zoxide" "vi-mode" "systemadmin" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -31,12 +31,14 @@ in {
|
||||
};
|
||||
|
||||
# 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;
|
||||
|
||||
environment.systemPackages = (if config.enableCuda then
|
||||
[ (pkgs.blender.override { cudaSupport = true; }) ]
|
||||
else
|
||||
environment.systemPackages = (if config.enableCuda then [
|
||||
(pkgs.blender.override { cudaSupport = true; })
|
||||
(pkgs.ollama.override { acceleration = "cuda"; })
|
||||
] else
|
||||
[ ]);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user