nixos/geoclue2: do not start geoclue agent for system users
This commit is contained in:
parent
df285339a3
commit
860e87d363
@ -188,7 +188,8 @@ in
|
|||||||
|
|
||||||
systemd.packages = [ package ];
|
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 = {
|
||||||
users.geoclue = {
|
users.geoclue = {
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
@ -217,6 +218,7 @@ in
|
|||||||
# we can't be part of a system service, and the agent should
|
# we can't be part of a system service, and the agent should
|
||||||
# be okay with the main service coming and going
|
# be okay with the main service coming and going
|
||||||
wantedBy = [ "default.target" ];
|
wantedBy = [ "default.target" ];
|
||||||
|
unitConfig.ConditionUser = "!@system";
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "exec";
|
Type = "exec";
|
||||||
ExecStart = "${package}/libexec/geoclue-2.0/demos/agent";
|
ExecStart = "${package}/libexec/geoclue-2.0/demos/agent";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user