From 0aac16e8310bb00726d46c34c589f2afed00501a Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Fri, 10 May 2024 23:17:45 +0200 Subject: [PATCH] enable photoprism on orbi --- nixos/machines/orbi/configuration.nix | 2 +- .../hardware-configuration/disko-config.nix | 24 +++++++++---------- nixos/machines/orbi/service-photoprism.nix | 3 +++ 3 files changed, 16 insertions(+), 13 deletions(-) diff --git a/nixos/machines/orbi/configuration.nix b/nixos/machines/orbi/configuration.nix index 1d8fd81..9a076d9 100644 --- a/nixos/machines/orbi/configuration.nix +++ b/nixos/machines/orbi/configuration.nix @@ -13,7 +13,7 @@ ./service-forgejo.nix ./service-vaultwarden.nix ./service-taskserver.nix - #./service-photoprism.nix + ./service-photoprism.nix ./nginx-ingolf-wagner-de.nix ./nginx-wkd.nix diff --git a/nixos/machines/orbi/hardware-configuration/disko-config.nix b/nixos/machines/orbi/hardware-configuration/disko-config.nix index a3631bf..803c720 100644 --- a/nixos/machines/orbi/hardware-configuration/disko-config.nix +++ b/nixos/machines/orbi/hardware-configuration/disko-config.nix @@ -134,18 +134,18 @@ in #"com.sun:auto-snapshot:monthly" = false; }; }; - #photoprism = { - # type = "zfs_fs"; - # mountpoint = "/var/lib/nixos-containers/photoprism"; - # options = { - # mountpoint = "legacy"; - # compression = "lz4"; - # "com.sun:auto-snapshot:hourly" = toString true; - # "com.sun:auto-snapshot:daily" = toString true; - # #"com.sun:auto-snapshot:weekly" = false; - # #"com.sun:auto-snapshot:monthly" = false; - # }; - #}; + photoprism = { + type = "zfs_fs"; + mountpoint = "/var/lib/nixos-containers/photoprism"; + options = { + mountpoint = "legacy"; + compression = "lz4"; + "com.sun:auto-snapshot:hourly" = toString true; + "com.sun:auto-snapshot:daily" = toString true; + #"com.sun:auto-snapshot:weekly" = false; + #"com.sun:auto-snapshot:monthly" = false; + }; + }; }; }; diff --git a/nixos/machines/orbi/service-photoprism.nix b/nixos/machines/orbi/service-photoprism.nix index 77a10f3..5bb486f 100644 --- a/nixos/machines/orbi/service-photoprism.nix +++ b/nixos/machines/orbi/service-photoprism.nix @@ -6,6 +6,9 @@ let in { + networking.firewall.interfaces.wg0.allowedTCPPorts = [ photoprismPort ]; + # networking.firewall.interfaces.wg0.allowedUDPPorts = [ photoprismPort ]; + containers.photoprism = { privateNetwork = false; autoStart = true;