From 71eb686b81585ffd1ea55c58f5f729741e924438 Mon Sep 17 00:00:00 2001 From: Zeph Levy <171337931+ZephLevy@users.noreply.github.com> Date: Sun, 26 Apr 2026 22:34:27 +0200 Subject: [PATCH] Add ollama and use GPU --- nixos/configuration.nix | 1 + nixos/modules/bundle.nix | 1 + nixos/modules/gpu.nix | 7 +++++++ 3 files changed, 9 insertions(+) create mode 100644 nixos/modules/gpu.nix diff --git a/nixos/configuration.nix b/nixos/configuration.nix index fdcaec6..7cf0eb3 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -76,4 +76,5 @@ powerOnBoot = false; }; services.blueman.enable = true; + services.ollama.enable = true; } diff --git a/nixos/modules/bundle.nix b/nixos/modules/bundle.nix index b569cf7..5c88ccf 100644 --- a/nixos/modules/bundle.nix +++ b/nixos/modules/bundle.nix @@ -11,5 +11,6 @@ ./git.nix ./thunderbird.nix ./lidswitch.nix + ./gpu.nix ]; } diff --git a/nixos/modules/gpu.nix b/nixos/modules/gpu.nix new file mode 100644 index 0000000..a5c6304 --- /dev/null +++ b/nixos/modules/gpu.nix @@ -0,0 +1,7 @@ +{ ... }: { + hardware.graphics = { + enable = true; + enable32Bit = true; + }; + nixpkgs.config.rocmSupport = true; +}