Skip to content

Commit fc7aea9

Browse files
committed
nixos/spacenavd: add wantedBy for automatic startup
nixos currently does not respect the WantedBy directive from the upstream service file (#81138)
1 parent 23f98b6 commit fc7aea9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nixos/modules/services/hardware/spacenavd.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ in
1717
config = lib.mkIf cfg.enable {
1818
systemd = {
1919
packages = [ pkgs.spacenavd ];
20-
services.spacenavd.enable = true;
20+
services.spacenavd = {
21+
enable = true;
22+
wantedBy = [ "graphical.target" ];
23+
};
2124
};
2225
};
2326
}

0 commit comments

Comments
 (0)