summary refs log tree commit diff
path: root/nixos/modules/services/hardware/xow.nix
blob: a18d60ad83bec07971e68328f0ab44561f277ea4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 ];
  };
}