diff options
author | sinanmohd <sinan@sinanmohd.com> | 2025-02-28 22:11:22 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2025-02-28 22:11:22 +0530 |
commit | d72a55ac3369912643c38878e9df36968b024327 (patch) | |
tree | 89f10098e9d8add089c014de801244d66b0246de /os/kay/modules/immich.nix | |
parent | 4870446fdc08f066c124ffc148d274942f37b631 (diff) |
kay/immich: init
Diffstat (limited to 'os/kay/modules/immich.nix')
-rw-r--r-- | os/kay/modules/immich.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/os/kay/modules/immich.nix b/os/kay/modules/immich.nix new file mode 100644 index 0000000..5e5eaf4 --- /dev/null +++ b/os/kay/modules/immich.nix @@ -0,0 +1,23 @@ +{ config, ... }: +let + domain = config.global.userdata.domain; + mediaLocation = "/hdd/immich"; +in +{ + services.immich = { + enable = true; + inherit mediaLocation; + settings.server.externalDomain = "https://immich.${domain}"; + }; + + systemd.tmpfiles.settings.immich.${mediaLocation}.d = { + group = config.services.immich.group; + user = config.services.immich.user; + mode = "0755"; + }; + + users.users.immich.extraGroups = [ + "video" + "render" + ]; +} |