From 926f149821b9e30a4f813b54fa617575264ff58f Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Tue, 23 Jun 2026 00:11:08 +0200 Subject: [PATCH] Prepare odysseus & ollama --- home/doggo/doggo.nix | 1 + home/doggo/odysseus/.env | 0 home/doggo/ollama-config.nix | 18 ++++++++++++++++++ tamal/manifest.kdl | 14 +++++++++++++- 4 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 home/doggo/odysseus/.env create mode 100644 home/doggo/ollama-config.nix diff --git a/home/doggo/doggo.nix b/home/doggo/doggo.nix index 44ce394..0c13696 100644 --- a/home/doggo/doggo.nix +++ b/home/doggo/doggo.nix @@ -86,6 +86,7 @@ ./discord-config.nix ./firefox-config.nix ./mpv-config.nix + ./ollama-config.nix ]; qt = { diff --git a/home/doggo/odysseus/.env b/home/doggo/odysseus/.env new file mode 100644 index 0000000..e69de29 diff --git a/home/doggo/ollama-config.nix b/home/doggo/ollama-config.nix new file mode 100644 index 0000000..a561bc4 --- /dev/null +++ b/home/doggo/ollama-config.nix @@ -0,0 +1,18 @@ +{ ... }: + +{ + services.ollama = { + enable = false; # TODO Enable when odysseus package supports non-flake installation + package = pkgs.ollama-vulkan; + }; + /* + services.odysseus = { + enable = true; + xdg.dataHome."odysseus/odysseus-env".source = ./odysseus/.env; + # https://github.com/pewdiepie-archdaemon/odysseus/blob/dev/.env.example + environmentFile = "${config.xdg.dataHome}}/odysseus/odysseus-env"; + host = "127.0.0.1"; + port = 8008; + }; + */ +} \ No newline at end of file diff --git a/tamal/manifest.kdl b/tamal/manifest.kdl index e12f3fa..875bdfa 100644 --- a/tamal/manifest.kdl +++ b/tamal/manifest.kdl @@ -5,6 +5,7 @@ patches { adios "./patches/adios.patch" kservice_fix "./patches/kservice_fix.patch" mpv_buffers_fix "https://patch-diff.githubusercontent.com/raw/mpv-player/mpv/pull/17303.patch" // TODO: Remove this and mpv from manifest when mpv 0.42 is released + //nix_odysseus "https://patch-diff.githubusercontent.com/raw/pewdiepie-archdaemon/odysseus/pull/2568.patch" // See 2567 also } inputs { @@ -79,7 +80,18 @@ inputs { | cut -f1 } } - +/* + odysseus { + archive { + url "https://github.com/pewdiepie-archdaemon/odysseus/archive/{{fresh_value}}.tar.gz" + } + patches nix_odysseus + fresh-cmd { + $ git ls-remote --branches "https://github.com/pewdiepie-archdaemon/odysseus.git" --refs "refs/heads/dev" + | cut -f1 + } + } +*/ // Packages ani-cli-git { archive {