mirror of
https://github.com/Ascyii/nixos.git
synced 2026-01-01 06:44:26 -05:00
Add garbage collection for better disk management
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
# 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
|
||||||
@@ -16,20 +16,17 @@
|
|||||||
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
|
nix.optimise.automatic = true;
|
||||||
starship
|
|
||||||
zoxide
|
nix.gc = {
|
||||||
rsync
|
automatic = true;
|
||||||
];
|
dates = "weekly";
|
||||||
|
options = "--delete-older-than 14d"; # Two weeks cache then forget
|
||||||
};
|
};
|
||||||
|
|
||||||
networking = {
|
networking = { networkmanager = { enable = true; }; };
|
||||||
networkmanager = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
console = {
|
console = {
|
||||||
@@ -42,13 +39,8 @@
|
|||||||
autosuggestions.enable = true;
|
autosuggestions.enable = true;
|
||||||
ohMyZsh = {
|
ohMyZsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = [
|
plugins =
|
||||||
"history-substring-search"
|
[ "history-substring-search" "git" "zoxide" "vi-mode" "systemadmin" ];
|
||||||
"git"
|
|
||||||
"zoxide"
|
|
||||||
"vi-mode"
|
|
||||||
"systemadmin"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
[ ]);
|
[ ]);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user