From 84e9fd142433a77d004104cc23d8eb9cadd16e65 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 11 Dec 2024 18:49:25 +0000 Subject: [PATCH] Move Gitea, Immich and Jellyfin data to the media ...drive --- nix/modules/nixos/features/homelab/gitea.nix | 2 ++ nix/modules/nixos/features/homelab/immich.nix | 6 +++++- nix/modules/nixos/features/homelab/jellyfin.nix | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/nix/modules/nixos/features/homelab/gitea.nix b/nix/modules/nixos/features/homelab/gitea.nix index 4667e43..660ad23 100644 --- a/nix/modules/nixos/features/homelab/gitea.nix +++ b/nix/modules/nixos/features/homelab/gitea.nix @@ -8,6 +8,8 @@ with lib; config = mkIf config.features.homelab.gitea.enable { services.gitea = { enable = true; + group = "media"; + stateDir = "/media/gitea"; settings = { server = { diff --git a/nix/modules/nixos/features/homelab/immich.nix b/nix/modules/nixos/features/homelab/immich.nix index 8b4a5f5..a158f7c 100644 --- a/nix/modules/nixos/features/homelab/immich.nix +++ b/nix/modules/nixos/features/homelab/immich.nix @@ -11,7 +11,11 @@ with lib; options.features.homelab.immich.enable = mkEnableOption "Enable immich"; config = mkIf config.features.homelab.immich.enable { - services.immich.enable = true; + services.immich = { + enable = true; + group = "media"; + mediaLocation = "/media/immich"; + }; environment.systemPackages = [ pkgs.immich-cli ]; }; diff --git a/nix/modules/nixos/features/homelab/jellyfin.nix b/nix/modules/nixos/features/homelab/jellyfin.nix index 0ac9fef..7e886de 100644 --- a/nix/modules/nixos/features/homelab/jellyfin.nix +++ b/nix/modules/nixos/features/homelab/jellyfin.nix @@ -9,6 +9,8 @@ with lib; services.jellyfin = { enable = true; openFirewall = true; + group = "media"; + configDir = "/media/jellyfin"; }; }; }