diff --git a/machines/cj/configuration.nix b/machines/cj/configuration.nix index d866d12..d6d5c71 100644 --- a/machines/cj/configuration.nix +++ b/machines/cj/configuration.nix @@ -170,6 +170,15 @@ # Enable the OpenSSH daemon. openssh.enable = true; + # This is an ollama frontend. Formerly called ollama-webui + open-webui = { + enable = true; + environment.OLLAMA_API_BASE_URL = "http://192.168.88.18:11434"; + host = "cj.monster-squeaker.ts.net"; + port = 8687; + stateDir = "/serverdata/open-webui"; + }; + pipewire = { enable = true; alsa.enable = true; diff --git a/machines/cj/hardware-configuration-zfs.nix b/machines/cj/hardware-configuration-zfs.nix index b592308..984aae8 100644 --- a/machines/cj/hardware-configuration-zfs.nix +++ b/machines/cj/hardware-configuration-zfs.nix @@ -80,6 +80,11 @@ fsType = "zfs"; neededForBoot = true; }; + fileSystems."/serverdata/open-webui" = + { device = "rpool/serverdata/open-webui"; + fsType = "zfs"; + neededForBoot = true; + }; fileSystems."/serverdata/pihole" = { device = "rpool/serverdata/pihole"; fsType = "zfs";