summaryrefslogtreecommitdiffstats
path: root/nixos/modules
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
parent35035a543c9ed2e3383ecfdf6b9c610e20c3223c (diff)
xow: 0.2 -> 0.4
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/hardware/uinput.nix2
-rw-r--r--nixos/modules/services/hardware/xow.nix19
2 files changed, 4 insertions, 17 deletions
diff --git a/nixos/modules/hardware/uinput.nix b/nixos/modules/hardware/uinput.nix
index 101c12fe257e..55e86bfa6bdb 100644
--- a/nixos/modules/hardware/uinput.nix
+++ b/nixos/modules/hardware/uinput.nix
@@ -4,7 +4,7 @@ let
cfg = config.hardware.uinput;
in {
options.hardware.uinput = {
- enable = lib.mkEnableOption "Whether to enable uinput support";
+ enable = lib.mkEnableOption "uinput support";
};
config = lib.mkIf cfg.enable {
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 ];
};
}