From fc7aea9368cd4d688aa3ee0c56a029c8c21b2fad Mon Sep 17 00:00:00 2001 From: sohalt Date: Fri, 20 Dec 2024 11:47:07 +0100 Subject: [PATCH] nixos/spacenavd: add wantedBy for automatic startup nixos currently does not respect the WantedBy directive from the upstream service file (https://github.com/NixOS/nixpkgs/issues/81138) --- nixos/modules/services/hardware/spacenavd.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/hardware/spacenavd.nix b/nixos/modules/services/hardware/spacenavd.nix index db3ab37dc2677..ddc3f1dc1b590 100644 --- a/nixos/modules/services/hardware/spacenavd.nix +++ b/nixos/modules/services/hardware/spacenavd.nix @@ -17,7 +17,10 @@ in config = lib.mkIf cfg.enable { systemd = { packages = [ pkgs.spacenavd ]; - services.spacenavd.enable = true; + services.spacenavd = { + enable = true; + wantedBy = [ "graphical.target" ]; + }; }; }; }