nixos-configs/modules/logitech.nix

31 lines
500 B
Nix
Raw Normal View History

2024-04-20 13:42:51 -04:00
{
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"];
};
};
}