feat: init photoprism and immich configs
This commit is contained in:
parent
3d8392d368
commit
183b10241f
3 changed files with 35 additions and 1 deletions
|
@ -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
10
immich.nix
Normal 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
19
photoprism.nix
Normal 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 = "";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue