summary refs log tree commit diff
path: root/nixos/modules/services/hardware
diff options
context:
space:
mode:
authorJan Solanti <jhs@psonet.com>2021-02-03 03:40:12 +0200
committerJan Solanti <jhs@psonet.com>2021-02-03 16:18:29 +0200
commit9de9f6062c9495284609ab648db599c93ec76226 (patch)
tree1d8725a86315f58dd34c9bb2de5cb9037277e369 /nixos/modules/services/hardware
parent65211f5afcc3637c55423b327157a5eae05dff67 (diff)
downloadnixpkgs-9de9f6062c9495284609ab648db599c93ec76226.tar
nixpkgs-9de9f6062c9495284609ab648db599c93ec76226.tar.gz
nixpkgs-9de9f6062c9495284609ab648db599c93ec76226.tar.bz2
nixpkgs-9de9f6062c9495284609ab648db599c93ec76226.tar.lz
nixpkgs-9de9f6062c9495284609ab648db599c93ec76226.tar.xz
nixpkgs-9de9f6062c9495284609ab648db599c93ec76226.tar.zst
nixpkgs-9de9f6062c9495284609ab648db599c93ec76226.zip
xow: fix service
Enable service when services.xow.enable is set to true.
Load xow's modprobe blacklist to make sure the dongle isn't captured by the wrong driver.
Diffstat (limited to 'nixos/modules/services/hardware')
-rw-r--r--nixos/modules/services/hardware/xow.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/services/hardware/xow.nix b/nixos/modules/services/hardware/xow.nix
index a18d60ad83b..311181176bd 100644
--- a/nixos/modules/services/hardware/xow.nix
+++ b/nixos/modules/services/hardware/xow.nix
@@ -10,7 +10,10 @@ in {
   config = lib.mkIf cfg.enable {
     hardware.uinput.enable = true;
 
+    boot.extraModprobeConfig = lib.readFile "${pkgs.xow}/lib/modprobe.d/xow-blacklist.conf";
+
     systemd.packages = [ pkgs.xow ];
+    systemd.services.xow.wantedBy = [ "multi-user.target" ];
 
     services.udev.packages = [ pkgs.xow ];
   };