From 0d5229036a265aaa103a426b00aa2dc42a38e47c Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Tue, 19 Nov 2024 10:27:28 +0100 Subject: [PATCH] add ollama --- overlays/jetbrains-toolbox/default.nix | 6 +----- systems/x86_64-linux/x1/default.nix | 6 ++++++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/overlays/jetbrains-toolbox/default.nix b/overlays/jetbrains-toolbox/default.nix index 94485f7..c96fd13 100644 --- a/overlays/jetbrains-toolbox/default.nix +++ b/overlays/jetbrains-toolbox/default.nix @@ -1,5 +1 @@ -{ channels, ... }: -final: prev: -{ - inherit (channels.unstable) jetbrains-toolbox; -} +{ channels, ... }: final: prev: { inherit (channels.unstable) jetbrains-toolbox ollama; } diff --git a/systems/x86_64-linux/x1/default.nix b/systems/x86_64-linux/x1/default.nix index 8fabe1f..a28648e 100644 --- a/systems/x86_64-linux/x1/default.nix +++ b/systems/x86_64-linux/x1/default.nix @@ -23,6 +23,7 @@ with lib.metacfg; kubectx k9s attic-client + ollama ]; services.resolved.enable = true; @@ -54,5 +55,10 @@ with lib.metacfg; { domain = "*"; item = "memlock"; type = "-"; value = "32768"; } ]; + services.ollama = { + enable = true; + acceleration = "rocm"; + }; + system.stateVersion = "23.11"; }