nixos/spacenavd: run as user service

This commit is contained in:
sohalt
2021-05-22 12:48:12 +02:00
committed by Gabriel Ebner
parent f8ed803385
commit be01cb8b97
5 changed files with 175 additions and 2 deletions
@@ -13,13 +13,12 @@ in {
};
config = mkIf cfg.enable {
systemd.services.spacenavd = {
systemd.user.services.spacenavd = {
description = "Daemon for the Spacenavigator 6DOF mice by 3Dconnexion";
after = [ "syslog.target" ];
wantedBy = [ "graphical.target" ];
serviceConfig = {
ExecStart = "${pkgs.spacenavd}/bin/spacenavd -d -l syslog";
StandardError = "syslog";
};
};
};