nixos-configs/modules/logitech.nix
matt1432 32e5e90b16
All checks were successful
Discord / discord commits (push) Has been skipped
feat(binto): add logitech mouse
2024-04-20 13:42:51 -04:00

30 lines
500 B
Nix

{
config,
lib,
solaar,
...
}: let
inherit (config.vars) mainUser;
inherit (lib) mkIf;
cfgHypr =
config
.home-manager
.users
.${mainUser}
.wayland
.windowManager
.hyprland;
in {
imports = [
solaar.nixosModules.default
];
programs.solaar.enable = true;
# HOME-MANAGER CONFIG
home-manager.users.${mainUser} = {
wayland.windowManager.hyprland = mkIf (cfgHypr.enable) {
settings.exec-once = ["solaar -w hide -b symbolic"];
};
};
}