diff --git a/modules/system/homelab/ai.nix b/modules/system/homelab/ai.nix index 135d86e..14db355 100644 --- a/modules/system/homelab/ai.nix +++ b/modules/system/homelab/ai.nix @@ -1,10 +1,10 @@ -{ homelab, ... }: { +{ ... }: { services = { ollama = { enable = true; host = "127.0.0.1"; port = 11434; - home = "${homelab.disks.data}/ollama"; + home = "/mnt/data/ollama"; # loadModels = [ "gemma3n:e4b" "gemma3n:e2b" ]; }; open-webui = { diff --git a/modules/system/homelab/auth.nix b/modules/system/homelab/auth.nix index ca451a6..6a158af 100644 --- a/modules/system/homelab/auth.nix +++ b/modules/system/homelab/auth.nix @@ -1,8 +1,8 @@ { homelab, ... }: { services.pocket-id = { enable = true; - credentials.ENCRYPTION_KEY = "${homelab.disks.data}/pocketid/encryption-key"; - dataDir = "${homelab.disks.data}/pocketid/data"; + credentials.ENCRYPTION_KEY = "/mnt/data/pocketid/encryption-key"; + dataDir = "/mnt/data/pocketid/data"; settings = { PORT = "1411"; HOST = "127.0.0.1"; diff --git a/modules/system/homelab/containers.nix b/modules/system/homelab/containers.nix index a71d882..ff41403 100644 --- a/modules/system/homelab/containers.nix +++ b/modules/system/homelab/containers.nix @@ -1,5 +1,5 @@ -{ lib, homelab, ... }: let - stacks-dir = "${homelab.disks.data}/dockge/stacks"; +{ lib, ... }: let + stacks-dir = "/mnt/data/dockge/stacks"; in { virtualisation.oci-containers.containers."dockge" = { image = "louislam/dockge:latest"; @@ -8,7 +8,7 @@ in { }; volumes = [ "${stacks-dir}:${stacks-dir}:rw" - "${homelab.disks.data}/dockge/data:/app/data:rw" + "/mnt/data/dockge/data:/app/data:rw" "/var/run/docker.sock:/var/run/docker.sock:rw" ]; ports = [ diff --git a/modules/system/homelab/gallery.nix b/modules/system/homelab/gallery.nix index 6ae8b3e..b7c3a1e 100644 --- a/modules/system/homelab/gallery.nix +++ b/modules/system/homelab/gallery.nix @@ -1,4 +1,4 @@ -{ homelab, ... }: { +{ ... }: { users.users.immich.extraGroups = [ "video" "render" ]; services = { @@ -6,7 +6,7 @@ enable = true; port = 2283; host = "127.0.0.1"; - mediaLocation = "${homelab.disks.data}/immich"; + mediaLocation = "/mnt/data/immich"; accelerationDevices = null; machine-learning.enable = true; }; diff --git a/modules/system/homelab/git.nix b/modules/system/homelab/git.nix index 460bbbe..653c161 100644 --- a/modules/system/homelab/git.nix +++ b/modules/system/homelab/git.nix @@ -2,7 +2,7 @@ services.forgejo = { enable = true; lfs.enable = true; - stateDir = "${homelab.disks.data}/forgejo"; + stateDir = "/mnt/data/forgejo"; settings = { server = { DISABLE_SSH = true;