mirror of
https://github.com/Noratrieb/vps.git
synced 2026-07-12 08:17:45 +02:00
minipc
This commit is contained in:
parent
131a282338
commit
9dd5ae6698
44 changed files with 353 additions and 79 deletions
29
nix/modules/immich/default.nix
Normal file
29
nix/modules/immich/default.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ config, pkgs, ... }: {
|
||||
age.secrets.immich_secrets.file = ../../secrets/immich_secrets.age;
|
||||
|
||||
services.immich = {
|
||||
enable = true;
|
||||
mediaLocation = "/mnt/nas/HEY/_Nora/immich";
|
||||
secretsFile = config.age.secrets.immich_secrets.path;
|
||||
host = "0.0.0.0";
|
||||
database = {
|
||||
enableVectors = false;
|
||||
enableVectorChord = true;
|
||||
};
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
services.postgresql = {
|
||||
ensureDatabases = [ "immich" ];
|
||||
ensureUsers = [
|
||||
{
|
||||
name = "immich";
|
||||
ensureDBOwnership = true;
|
||||
}
|
||||
];
|
||||
authentication = pkgs.lib.mkForce ''
|
||||
#type database DBuser auth-method
|
||||
local all all peer
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue