nixos/home/modules/pipewire-controller.nix

18 lines
391 B
Nix

{ lib, config, pkgs, ... }:
let
cfg = config.snowhawk.pipewire-controller;
in
{
options.snowhawk.pipewire-controller = {
enable = lib.mkEnableOption "pipewire-controller home-manager module";
};
config = lib.mkIf cfg.enable {
snowhawk.sxhkd.enable = true;
services.sxhkd.keybindings = {
"XF86TouchpadOn" = "${lib.getExe pkgs.pipewire-controller}";
};
};
}