From 9de9f6062c9495284609ab648db599c93ec76226 Mon Sep 17 00:00:00 2001 From: Jan Solanti Date: Wed, 3 Feb 2021 03:40:12 +0200 Subject: [PATCH] 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. --- nixos/modules/services/hardware/xow.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/modules/services/hardware/xow.nix b/nixos/modules/services/hardware/xow.nix index a18d60ad83be..311181176bd8 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 ]; };