about summary refs log tree commit diff
path: root/nixos/modules/services/hardware
diff options
context:
space:
mode:
authorJan Solanti <jhs@psonet.com>2020-03-30 04:05:52 +0300
committerJan Solanti <jhs@psonet.com>2020-03-31 17:24:37 +0300
commit081ed8f0126178a0d2c624fd4bd946704db7fc6a (patch)
treecd67d9314f2987b655bf5cbe1a2d877a9a430d9f /nixos/modules/services/hardware
parent35035a543c9ed2e3383ecfdf6b9c610e20c3223c (diff)
downloadnixlib-081ed8f0126178a0d2c624fd4bd946704db7fc6a.tar
nixlib-081ed8f0126178a0d2c624fd4bd946704db7fc6a.tar.gz
nixlib-081ed8f0126178a0d2c624fd4bd946704db7fc6a.tar.bz2
nixlib-081ed8f0126178a0d2c624fd4bd946704db7fc6a.tar.lz
nixlib-081ed8f0126178a0d2c624fd4bd946704db7fc6a.tar.xz
nixlib-081ed8f0126178a0d2c624fd4bd946704db7fc6a.tar.zst
nixlib-081ed8f0126178a0d2c624fd4bd946704db7fc6a.zip
xow: 0.2 -> 0.4
Diffstat (limited to 'nixos/modules/services/hardware')
-rw-r--r--nixos/modules/services/hardware/xow.nix19
1 files changed, 3 insertions, 16 deletions
diff --git a/nixos/modules/services/hardware/xow.nix b/nixos/modules/services/hardware/xow.nix
index a97dd5c870d7..a18d60ad83be 100644
--- a/nixos/modules/services/hardware/xow.nix
+++ b/nixos/modules/services/hardware/xow.nix
@@ -4,27 +4,14 @@ let
   cfg = config.services.hardware.xow;
 in {
   options.services.hardware.xow = {
-    enable = lib.mkEnableOption "Whether to enable xow or not.";
+    enable = lib.mkEnableOption "xow as a systemd service";
   };
 
   config = lib.mkIf cfg.enable {
     hardware.uinput.enable = true;
 
-    users.users.xow = {
-      group = "uinput";
-      isSystemUser = true;
-    };
+    systemd.packages = [ pkgs.xow ];
 
-    systemd.services.xow = {
-      wantedBy = [ "multi-user.target" ];
-      description = "Xbox One Wireless Dongle Driver";
-      after = [ "systemd-udev-settle.service" ];
-      serviceConfig = {
-        ExecStart = ''
-          ${pkgs.xow}/bin/xow
-        '';
-        User = "xow";
-      };
-    };
+    services.udev.packages = [ pkgs.xow ];
   };
 }