commit
0cb43d3151
19
nixos/modules/hardware/uinput.nix
Normal file
19
nixos/modules/hardware/uinput.nix
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.hardware.uinput;
|
||||||
|
in {
|
||||||
|
options.hardware.uinput = {
|
||||||
|
enable = lib.mkEnableOption "uinput support";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
boot.kernelModules = [ "uinput" ];
|
||||||
|
|
||||||
|
users.groups.uinput = {};
|
||||||
|
|
||||||
|
services.udev.extraRules = ''
|
||||||
|
SUBSYSTEM=="misc", KERNEL=="uinput", MODE="0660", GROUP="uinput", OPTIONS+="static_node=uinput"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
@ -65,6 +65,7 @@
|
|||||||
./hardware/usb-wwan.nix
|
./hardware/usb-wwan.nix
|
||||||
./hardware/onlykey.nix
|
./hardware/onlykey.nix
|
||||||
./hardware/wooting.nix
|
./hardware/wooting.nix
|
||||||
|
./hardware/uinput.nix
|
||||||
./hardware/video/amdgpu.nix
|
./hardware/video/amdgpu.nix
|
||||||
./hardware/video/amdgpu-pro.nix
|
./hardware/video/amdgpu-pro.nix
|
||||||
./hardware/video/ati.nix
|
./hardware/video/ati.nix
|
||||||
@ -368,6 +369,7 @@
|
|||||||
./services/hardware/thermald.nix
|
./services/hardware/thermald.nix
|
||||||
./services/hardware/undervolt.nix
|
./services/hardware/undervolt.nix
|
||||||
./services/hardware/vdr.nix
|
./services/hardware/vdr.nix
|
||||||
|
./services/hardware/xow.nix
|
||||||
./services/logging/SystemdJournal2Gelf.nix
|
./services/logging/SystemdJournal2Gelf.nix
|
||||||
./services/logging/awstats.nix
|
./services/logging/awstats.nix
|
||||||
./services/logging/fluentd.nix
|
./services/logging/fluentd.nix
|
||||||
|
17
nixos/modules/services/hardware/xow.nix
Normal file
17
nixos/modules/services/hardware/xow.nix
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.services.hardware.xow;
|
||||||
|
in {
|
||||||
|
options.services.hardware.xow = {
|
||||||
|
enable = lib.mkEnableOption "xow as a systemd service";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
hardware.uinput.enable = true;
|
||||||
|
|
||||||
|
systemd.packages = [ pkgs.xow ];
|
||||||
|
|
||||||
|
services.udev.packages = [ pkgs.xow ];
|
||||||
|
};
|
||||||
|
}
|
33
pkgs/misc/drivers/xow/default.nix
Normal file
33
pkgs/misc/drivers/xow/default.nix
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
{ stdenv, fetchFromGitHub, libusb }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "xow";
|
||||||
|
version = "0.4";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "medusalix";
|
||||||
|
repo = "xow";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1xkwcx2gqip9v2h3zjmrn7sgcck3midl5alhsmr3zivgdipamynv";
|
||||||
|
};
|
||||||
|
|
||||||
|
makeFlags = [
|
||||||
|
"BUILD=RELEASE"
|
||||||
|
"VERSION=${version}"
|
||||||
|
"BINDIR=${placeholder ''out''}/bin"
|
||||||
|
"UDEVDIR=${placeholder ''out''}/lib/udev/rules.d"
|
||||||
|
"MODLDIR=${placeholder ''out''}/lib/modules-load.d"
|
||||||
|
"MODPDIR=${placeholder ''out''}/lib/modprobe.d"
|
||||||
|
"SYSDDIR=${placeholder ''out''}/lib/systemd/system"
|
||||||
|
];
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
buildInputs = [ libusb ];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = "https://github.com/medusalix/xow";
|
||||||
|
description = "Linux driver for the Xbox One wireless dongle";
|
||||||
|
license = licenses.gpl2Plus;
|
||||||
|
maintainers = [ maintainers.jansol ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
@ -26045,6 +26045,8 @@ in
|
|||||||
|
|
||||||
xboxdrv = callPackage ../misc/drivers/xboxdrv { };
|
xboxdrv = callPackage ../misc/drivers/xboxdrv { };
|
||||||
|
|
||||||
|
xow = callPackage ../misc/drivers/xow { };
|
||||||
|
|
||||||
xbps = callPackage ../tools/package-management/xbps { };
|
xbps = callPackage ../tools/package-management/xbps { };
|
||||||
|
|
||||||
xcftools = callPackage ../tools/graphics/xcftools { };
|
xcftools = callPackage ../tools/graphics/xcftools { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user