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, ... }:
|
{ 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 = {
|
services.immich = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
|
|
@ -15,6 +22,5 @@
|
||||||
host = "0.0.0.0";
|
host = "0.0.0.0";
|
||||||
};
|
};
|
||||||
|
|
||||||
local.nginx.proxyVhosts."photos.gerg-l.com" =
|
local.nginx.proxyVhosts."photos.gerg-l.com" = "http://localhost:${toString cfg.port}";
|
||||||
"http://localhost:${toString config.services.immich.port}";
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue