summaryrefslogtreecommitdiff
path: root/os/kay/modules/immich.nix
blob: 5e5eaf4ad8ebcc0006368fb6e3e111b778874239 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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"
  ];
}