aboutsummaryrefslogtreecommitdiff
path: root/modules/immich
diff options
context:
space:
mode:
authoraethrvmn <me@aethrvmn.gr>2025-11-30 21:59:43 +0000
committeraethrvmn <me@aethrvmn.gr>2025-11-30 21:59:43 +0000
commit893ea11e1dc05fe1a2a34e66d4ebcfdffda34720 (patch)
treeef454e299f49cbb58e1b9fbafd0b759b4379ac2a /modules/immich
parentadded .lock to ignorelist (diff)
huge restructure of modules
Diffstat (limited to 'modules/immich')
-rw-r--r--modules/immich/default.nix28
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" ];
+ };
+}
Directive (EU) 2019/790, Article 4(3); all rights regarding Text and Data Mining (TDM) are reserved.