diff options
| author | Christian <[email protected]> | 2026-04-08 13:10:24 -0500 |
|---|---|---|
| committer | Christian <[email protected]> | 2026-04-08 13:10:24 -0500 |
| commit | aa8289ae28d17869297b8046ed8efd04a5e1016c (patch) | |
| tree | 3d9f1186634d4de1f3cb68a8600f33151d994ef7 /hosts/desktop/configuration.nix | |
| parent | e1fcf4fac685b91ed7272479c0e9e670687deb92 (diff) | |
Local LLM Time
Diffstat (limited to 'hosts/desktop/configuration.nix')
| -rw-r--r-- | hosts/desktop/configuration.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/hosts/desktop/configuration.nix b/hosts/desktop/configuration.nix index cf4c360..96cc210 100644 --- a/hosts/desktop/configuration.nix +++ b/hosts/desktop/configuration.nix @@ -1,5 +1,12 @@ { config, lib, pkgs, inputs, ... }: +let + unstable = import inputs.nixpkgs-unstable { + system = "x86_64-linux"; + config.allowUnfree = true; + config.rocmSupport = true; + }; +in { imports = [ # Include the results of the hardware scan. @@ -25,5 +32,16 @@ "8.8.8.8" ]; + services.xserver.videoDrivers = [ "amdgpu" ]; + + services.ollama = { + enable = true; + package = unstable.ollama; + acceleration = "rocm"; + rocmOverrideGfx = "10.3.0"; + }; + + environment.variables.HSA_OVERRIDE_GFX_VERSION = "10.3.0"; + system.stateVersion = "25.11"; } |
