nix-config/config/optional/wayland.nix

28 lines
644 B
Nix
Raw Normal View History

2023-09-26 22:25:58 +02:00
{
lib,
minimal,
pkgs,
...
}:
lib.optionalAttrs (!minimal) {
2023-09-01 20:17:33 +02:00
services.dbus.enable = true;
environment.systemPackages = with pkgs; [
wdisplays
wl-clipboard
];
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
];
};
2023-09-01 20:17:33 +02:00
}