From 183b10241f8f11415c66728e05db283800c33e38 Mon Sep 17 00:00:00 2001 From: Constantin Gierczak--Galle Date: Wed, 9 Oct 2024 00:04:46 +0200 Subject: [PATCH] feat: init photoprism and immich configs --- configuration.nix | 7 ++++++- immich.nix | 10 ++++++++++ photoprism.nix | 19 +++++++++++++++++++ 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 immich.nix create mode 100644 photoprism.nix diff --git a/configuration.nix b/configuration.nix index 0f0a018..e85cab7 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,7 +1,12 @@ { lib, pkgs, ... }: { - imports = [ ./hardware.nix ]; + imports = [ + ./hardware.nix + + ./photoprism.nix + ./immich.nix + ]; # Bootloader. boot.loader.systemd-boot.enable = true; diff --git a/immich.nix b/immich.nix new file mode 100644 index 0000000..d00dbdf --- /dev/null +++ b/immich.nix @@ -0,0 +1,10 @@ +{ lib, modulesPath, ... }: + +{ + services.immich = { + enable = true; + # default port: 3001 + machine-learning.enable = true; + host = "localhost"; + }; +} diff --git a/photoprism.nix b/photoprism.nix new file mode 100644 index 0000000..7c19648 --- /dev/null +++ b/photoprism.nix @@ -0,0 +1,19 @@ +{ lib, modulesPath, ... }: + +{ + services.photoprism = { + enable = true; + #default port: 2342 + settings = { + PHOTOPRISM_DEFAULT_LOCALE = "fr"; + PHOTOPRISM_ADMIN_USERNAME = "admin"; + PHOTOPRISM_SITE_CAPTION = "PhotoPrism"; + }; + + # TODO: public web address + address = "photoprism.what?"; + + # TODO: add admin password file (agenix?) + passwordFile = ""; + }; +}