19 lines
472 B
Nix
19 lines
472 B
Nix
{ pkgs, ... }:
|
|
{
|
|
home.packages = with pkgs; [
|
|
discord
|
|
];
|
|
|
|
xdg.desktopEntries = {
|
|
discord = {
|
|
name = "Discord";
|
|
# Custom options to reduce flickering under wayland.
|
|
exec = "env ELECTRON_OZONE_PLATFORM_HINT= discord --enable-features=UseOzonePlatform --ozone-platform=wayland --disable-gpu";
|
|
};
|
|
};
|
|
wayland.windowManager.hyprland.settings.bind = [
|
|
# Pass Mouse4 through to discord
|
|
# ", mouse:275, pass, class:^discord$"
|
|
];
|
|
}
|