user.immich now doesn't get set when server disabled
This commit is contained in:
parent
c85c1e089e
commit
1e1736e14b
1 changed files with 6 additions and 2 deletions
|
|
@ -1,4 +1,8 @@
|
|||
{config, lib, ...}: let
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
cfg = config.niksos.server;
|
||||
in {
|
||||
services.immich = {
|
||||
|
|
@ -47,7 +51,7 @@ in {
|
|||
|
||||
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" = {
|
||||
extraConfig = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue