use homelab data disk for apps

This commit is contained in:
Satria 2026-03-03 14:54:58 +07:00
commit 891ff6434e
5 changed files with 10 additions and 6 deletions

View file

@ -1,9 +1,10 @@
{ ... }: {
{ homelab, ... }: {
services = {
ollama = {
enable = true;
host = "127.0.0.1";
port = 11434;
home = "${homelab.disks.data}/ollama";
# loadModels = [ "gemma3n:e4b" "gemma3n:e2b" ];
};
open-webui = {

View file

@ -1,7 +1,8 @@
{ homelab, ... }: {
services.pocket-id = {
enable = true;
credentials.ENCRYPTION_KEY = "/var/lib/pocket-id/encryption-key";
credentials.ENCRYPTION_KEY = "${homelab.disks.data}/pocketid/encryption-key";
dataDir = "${homelab.disks.data}/pocketid/data";
settings = {
PORT = "1411";
HOST = "127.0.0.1";

View file

@ -1,5 +1,5 @@
{ lib, ... }: let
stacks-dir = "/opt/stacks";
{ lib, homelab, ... }: let
stacks-dir = "${homelab.disks.data}/dockge/stacks";
in {
virtualisation.oci-containers.containers."dockge" = {
image = "louislam/dockge:latest";

View file

@ -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 = "/var/lib/immich";
mediaLocation = "${homelab.disks.data}/immich";
accelerationDevices = null;
machine-learning.enable = true;
};

View file

@ -1,6 +1,8 @@
{ homelab, ... }: {
services.forgejo = {
enable = true;
lfs.enable = true;
stateDir = "${homelab.disks.data}/forgejo";
settings = {
server = {
DISABLE_SSH = true;