3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules/services/hardware/xow.nix

18 lines
335 B
Nix
Raw Normal View History

2019-12-22 20:10:48 +00:00
{ config, pkgs, lib, ... }:
let
cfg = config.services.hardware.xow;
in {
options.services.hardware.xow = {
2020-03-30 02:05:52 +01:00
enable = lib.mkEnableOption "xow as a systemd service";
2019-12-22 20:10:48 +00:00
};
config = lib.mkIf cfg.enable {
hardware.uinput.enable = true;
2020-03-30 02:05:52 +01:00
systemd.packages = [ pkgs.xow ];
2019-12-22 20:10:48 +00:00
2020-03-30 02:05:52 +01:00
services.udev.packages = [ pkgs.xow ];
2019-12-22 20:10:48 +00:00
};
}