nixos-configs/modules/ratbag-mice.nix

29 lines
464 B
Nix
Raw Normal View History

2024-04-20 13:42:51 -04:00
{
config,
lib,
2024-04-24 17:44:08 -04:00
pkgs,
2024-04-20 13:42:51 -04:00
...
}: let
inherit (config.vars) mainUser;
inherit (lib) mkIf;
cfgHypr =
config
.home-manager
.users
.${mainUser}
.wayland
.windowManager
.hyprland;
in {
2024-04-24 17:44:08 -04:00
services.ratbagd.enable = true;
2024-04-20 13:42:51 -04:00
# HOME-MANAGER CONFIG
home-manager.users.${mainUser} = {
2024-04-24 17:44:08 -04:00
home.packages = with pkgs; [piper];
2024-04-20 13:42:51 -04:00
wayland.windowManager.hyprland = mkIf (cfgHypr.enable) {
2024-04-24 17:44:08 -04:00
# settings.exec-once = [""];
2024-04-20 13:42:51 -04:00
};
};
}