enable photoprism on orbi

This commit is contained in:
Ingolf Wagner 2024-05-10 23:17:45 +02:00
parent 2a96cc02d3
commit 0aac16e831
Signed by: palo
GPG key ID: 76BF5F1928B9618B
3 changed files with 16 additions and 13 deletions

View file

@ -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

View file

@ -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;
};
};
};
};

View file

@ -6,6 +6,9 @@ let
in
{
networking.firewall.interfaces.wg0.allowedTCPPorts = [ photoprismPort ];
# networking.firewall.interfaces.wg0.allowedUDPPorts = [ photoprismPort ];
containers.photoprism = {
privateNetwork = false;
autoStart = true;