feat: init photoprism and immich configs

This commit is contained in:
Constantin Gierczak--Galle 2024-10-09 00:04:46 +02:00
parent 3d8392d368
commit 183b10241f
No known key found for this signature in database
3 changed files with 35 additions and 1 deletions

View file

@ -1,7 +1,12 @@
{ lib, pkgs, ... }:
{
imports = [ ./hardware.nix ];
imports = [
./hardware.nix
./photoprism.nix
./immich.nix
];
# Bootloader.
boot.loader.systemd-boot.enable = true;

10
immich.nix Normal file
View file

@ -0,0 +1,10 @@
{ lib, modulesPath, ... }:
{
services.immich = {
enable = true;
# default port: 3001
machine-learning.enable = true;
host = "localhost";
};
}

19
photoprism.nix Normal file
View file

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