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 = ""; + }; +}