mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
ensure mediaLocation is created
This commit is contained in:
parent
c498b867f9
commit
37e81dcb42
1 changed files with 9 additions and 3 deletions
|
|
@ -1,6 +1,13 @@
|
|||
{ config, ... }:
|
||||
let
|
||||
cfg = config.services.immich;
|
||||
in
|
||||
{
|
||||
users.users.${config.services.immich.user}.extraGroups = [ "postgres" ];
|
||||
systemd.tmpfiles.rules =
|
||||
|
||||
[ "d ${cfg.mediaLocation} - ${cfg.user} ${cfg.group} - -" ];
|
||||
|
||||
users.users.${cfg.user}.extraGroups = [ "postgres" ];
|
||||
services.immich = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
|
|
@ -15,6 +22,5 @@
|
|||
host = "0.0.0.0";
|
||||
};
|
||||
|
||||
local.nginx.proxyVhosts."photos.gerg-l.com" =
|
||||
"http://localhost:${toString config.services.immich.port}";
|
||||
local.nginx.proxyVhosts."photos.gerg-l.com" = "http://localhost:${toString cfg.port}";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue