8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
17 lines
335 B
Nix
17 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 ];
|
|
};
|
|
}
|