aboutsummaryrefslogtreecommitdiff
path: root/modules/immich
diff options
context:
space:
mode:
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.