flake/nixos/modules/hardware/accessories/logitech-wireless.nix

20 lines
400 B
Nix
Raw Normal View History

{
lib,
config,
...
}: let
2023-12-15 18:40:18 +00:00
cfg = config.myFlake.hardware.accessories.logitech-wireless;
in {
options = {
2023-12-15 18:40:18 +00:00
myFlake.hardware.accessories.logitech-wireless.enable =
lib.mkEnableOption "Whether to enable support for wireless Logitech hardwares.";
};
config = lib.mkIf cfg.enable {
hardware.logitech.wireless = {
enable = true;
enableGraphical = true;
};
};
}