hyprland xdg-portal and displays conf

This commit is contained in:
Tristan 2024-01-05 12:27:21 +00:00
parent c882579a90
commit f08e55abe2
4 changed files with 18 additions and 9 deletions

View file

@ -33,6 +33,12 @@ in {
home-manager.users.${user}.imports = [
{
xdg.portal = {
enable = true;
config.common.default = ["hyprland"];
extraPortals = if cfg.hyprland then [ pkgs.xdg-desktop-portal-hyprland ] else if cfg.sway then [ pkgs.xdg-desktop-portal-sway ] else [];
};
wayland.windowManager.hyprland = mkIf cfg.hyprland {
enable = true;
systemd.enable = true;