0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-12 05:16:25 +03:00
nixpkgs/nixos/modules/services/hardware/spacenavd.nix
sohalt fc7aea9368 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)
2024-12-21 19:23:26 +01:00

26 lines
416 B
Nix

{
config,
lib,
pkgs,
...
}:
let
cfg = config.hardware.spacenavd;
in
{
options = {
hardware.spacenavd = {
enable = lib.mkEnableOption "spacenavd to support 3DConnexion devices";
};
};
config = lib.mkIf cfg.enable {
systemd = {
packages = [ pkgs.spacenavd ];
services.spacenavd = {
enable = true;
wantedBy = [ "graphical.target" ];
};
};
};
}