xow: init at 0.2

This commit is contained in:
Philipp Middendorf
2019-12-22 21:10:48 +01:00
committed by Jan Solanti
parent 1992768157
commit 35035a543c
5 changed files with 85 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
{ config, pkgs, lib, ... }:
let
cfg = config.hardware.uinput;
in {
options.hardware.uinput = {
enable = lib.mkEnableOption "Whether to enable 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"
'';
};
}