nix-config/config/optional/wayland.nix

46 lines
1 KiB
Nix
Raw Normal View History

2023-09-26 22:25:58 +02:00
{
lib,
minimal,
pkgs,
...
}:
lib.optionalAttrs (!minimal) {
services.dbus = {
enable = true;
implementation = "broker";
};
environment.systemPackages = with pkgs; [
wdisplays
wl-clipboard
2024-10-23 14:44:05 +02:00
wev
];
xdg.portal = {
enable = true;
xdgOpenUsePortal = true;
config.common = {
2024-07-26 22:12:48 +02:00
"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
];
};
services.displayManager.enable = true;
programs.uwsm = {
enable = true;
waylandCompositors = {
hyprland = {
binPath = "/etc/profiles/per-user/patrick/bin/Hyprland";
prettyName = "Hyprland";
};
sway = {
binPath = "/etc/profiles/per-user/patrick/bin/sway";
prettyName = "Sway";
};
};
};
2023-09-01 20:17:33 +02:00
}