mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
I don't know if i like this
This commit is contained in:
parent
c6a9144ffe
commit
1b62d16ddc
63 changed files with 369 additions and 294 deletions
20
nixosConfigurations/gerg-desktop/services/immich.nix
Normal file
20
nixosConfigurations/gerg-desktop/services/immich.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
users.users.${config.services.immich.user}.extraGroups = [ "postgres" ];
|
||||
services.immich = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
database = {
|
||||
enable = true;
|
||||
createDB = true;
|
||||
};
|
||||
mediaLocation = "/persist/services/immich";
|
||||
machine-learning.enable = true;
|
||||
settings = null;
|
||||
port = 2283;
|
||||
host = "0.0.0.0";
|
||||
};
|
||||
|
||||
local.nginx.proxyVhosts."photos.gerg-l.com" =
|
||||
"http://localhost:${toString config.services.immich.port}";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue