nix-config/config/optional/wayland.nix
Patrick 51fad81bdc
feat: misc programs
feat: switch to dbus-broker
2024-10-26 18:56:45 +02:00

32 lines
704 B
Nix

{
lib,
minimal,
pkgs,
...
}:
lib.optionalAttrs (!minimal) {
services.dbus = {
enable = true;
implementation = "broker";
};
environment.systemPackages = with pkgs; [
wdisplays
wl-clipboard
wev
];
xdg.portal = {
enable = true;
xdgOpenUsePortal = true;
config.common = {
"org.freedesktop.impl.portal.Secret" = [ "gnome-keyring" ];
"org.freedesktop.impl.portal.ScreenCast" = [ "hyprland" ];
"org.freedesktop.impl.portal.Screenshot" = [ "hyprland" ];
"org.freedesktop.portal.FileChooser" = [ "xdg-desktop-portal-gtk" ];
};
extraPortals = [
pkgs.xdg-desktop-portal-hyprland
pkgs.xdg-desktop-portal-gtk
];
};
}