diff --git a/config/users.nix b/config/users.nix index a99d11c..5db84b4 100644 --- a/config/users.nix +++ b/config/users.nix @@ -31,7 +31,7 @@ with lib; let group = user.name; extraGroups = ["audio" "wheel" "network"] - ++ (optionals cfg.xserver.enable ["input" "video"]) + ++ (optionals (lib.elem "desktop" config.machine.services) ["input" "video"]) ++ (optionals cfg.printing.enable ["cups" "lp"]) ++ (optional (withDocker && !withPodman) "docker") ++ (optional withPodman "podman");