nixos/hardware.spacenavd: remove with lib;

This commit is contained in:
Felix Buehler
2024-08-30 00:30:52 +02:00
parent 131116e4f0
commit d59ce5878b
@@ -1,18 +1,15 @@
{ config, lib, pkgs, ... }:
with lib;
let cfg = config.hardware.spacenavd;
in {
options = {
hardware.spacenavd = {
enable = mkEnableOption "spacenavd to support 3DConnexion devices";
enable = lib.mkEnableOption "spacenavd to support 3DConnexion devices";
};
};
config = mkIf cfg.enable {
config = lib.mkIf cfg.enable {
systemd.user.services.spacenavd = {
description = "Daemon for the Spacenavigator 6DOF mice by 3Dconnexion";
wantedBy = [ "graphical.target" ];