mirror of
https://github.com/Ascyii/nixos.git
synced 2025-12-31 22:44:23 -05:00
Some packages
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
services.avahi.enable = true;
|
||||
services.avahi.nssmdns4 = true;
|
||||
|
||||
environment = { systemPackages = with pkgs; [ git starship zoxide rsync ]; };
|
||||
environment = { systemPackages = with pkgs; [ xorg.xrandr git starship zoxide rsync ]; };
|
||||
|
||||
nix.optimise.automatic = true;
|
||||
|
||||
|
||||
@@ -31,14 +31,14 @@ in {
|
||||
};
|
||||
|
||||
# Apply CUDA-specific settings if enabled
|
||||
# Dont do all as this has ridiculous high build times
|
||||
#nixpkgs.config.cudaSupport = config.enableCuda;
|
||||
hardware.enableAllFirmware = config.enableCuda;
|
||||
nixpkgs.config.cudaSupport = config.enableCuda;
|
||||
hardware.enableAllFirmware = true;
|
||||
|
||||
environment.systemPackages = (if config.enableCuda then [
|
||||
(pkgs.blender.override { cudaSupport = true; })
|
||||
(pkgs.ollama.override { acceleration = "cuda"; })
|
||||
] else
|
||||
environment.systemPackages = (if config.enableCuda then
|
||||
[
|
||||
(pkgs.blender.override { cudaSupport = true; })
|
||||
]
|
||||
else
|
||||
[ ]);
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
services.ollama.enable = true;
|
||||
imports = [ ../hardware/nvidia.nix ];
|
||||
|
||||
services.ollama = {
|
||||
enable = true;
|
||||
acceleration = "cuda";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user