user.immich now doesn't get set when server disabled

This commit is contained in:
Jurn Wubben 2025-04-17 20:13:56 +02:00
parent 0c1faeea91
commit 7e1df0dd83

View file

@ -1,4 +1,8 @@
{config, lib, ...}: let {
config,
lib,
...
}: let
cfg = config.niksos.server; cfg = config.niksos.server;
in { in {
services.immich = { services.immich = {
@ -47,7 +51,7 @@ in {
accelerationDevices = lib.mkDefault null; accelerationDevices = lib.mkDefault null;
}; };
users.users.immich.extraGroups = lib.mkIf cfg ["video" "render"]; users.users.immich = lib.mkIf cfg {extraGroups = ["video" "render"];}; #NOTE: was first groups = lib.mkIf.. but then users.immich gets set even when server is disabled.
services.caddy.virtualHosts."photos.jsw.tf" = { services.caddy.virtualHosts."photos.jsw.tf" = {
extraConfig = '' extraConfig = ''