nixos/geoclue2: do not start geoclue agent for system users

Changed files
+3 -1
nixos
modules
services
desktops
+3 -1
nixos/modules/services/desktops/geoclue2.nix
···
systemd.packages = [ package ];
-
# we cannot use DynamicUser as we need the the geoclue user to exist for the dbus policy to work
+
# we cannot use DynamicUser as we need the the geoclue user to exist for the
+
# dbus policy to work
users = {
users.geoclue = {
isSystemUser = true;
···
# we can't be part of a system service, and the agent should
# be okay with the main service coming and going
wantedBy = [ "default.target" ];
+
unitConfig.ConditionUser = "!@system";
serviceConfig = {
Type = "exec";
ExecStart = "${package}/libexec/geoclue-2.0/demos/agent";