diff options
| author | aethrvmn <me@aethrvmn.gr> | 2025-11-30 21:59:43 +0000 |
|---|---|---|
| committer | aethrvmn <me@aethrvmn.gr> | 2025-11-30 21:59:43 +0000 |
| commit | 893ea11e1dc05fe1a2a34e66d4ebcfdffda34720 (patch) | |
| tree | ef454e299f49cbb58e1b9fbafd0b759b4379ac2a /modules/immich | |
| parent | added .lock to ignorelist (diff) | |
huge restructure of modules
Diffstat (limited to 'modules/immich')
| -rw-r--r-- | modules/immich/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/modules/immich/default.nix b/modules/immich/default.nix new file mode 100644 index 0000000..fac75f9 --- /dev/null +++ b/modules/immich/default.nix @@ -0,0 +1,28 @@ +{ config, lib, ... }: +{ + services = { + # Immich setup + immich = { + enable = true; + openFirewall = false; + + host = "127.0.0.1"; + port = 3010; + }; + + nginx = { + virtualHosts."photos.internal" = { + locations."/" = { + proxyPass = "http://127.0.0.1:3010"; + proxyWebsockets = true; + }; + }; + }; + }; + + hardware.graphics.enable = lib.mkForce true; + + users.users.immich = { + extraGroups = [ "video" "render" ]; + }; +} |
