1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-12 23:55:23 +00:00
nixpkgs/nixos/modules/services/hardware/xow.nix
2020-03-31 17:24:37 +03:00

18 lines
335 B
Nix

{ 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 ];
};
}