chore(sway): xdg portal is now configured with home-manager

This commit is contained in:
Yorick Barbanneau 2025-08-24 15:37:21 +02:00
parent e93c365d1b
commit 40da37234a
Signed by: ephase
GPG key ID: 246042E52B41FFCF
2 changed files with 14 additions and 15 deletions

View file

@ -158,6 +158,20 @@ in
desktop = "${config.home.homeDirectory}/documents"; desktop = "${config.home.homeDirectory}/documents";
publicShare = "${config.home.homeDirectory}/tmp/public"; publicShare = "${config.home.homeDirectory}/tmp/public";
}; };
portal = {
enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal-wlr
xdg-desktop-portal-gtk
];
xdgOpenUsePortal = true;
config = {
sway.default = [
"wlr"
"gtk"
];
};
};
}; };
}; };
} }

View file

@ -16,20 +16,5 @@ in
alsa.support32Bit = true; alsa.support32Bit = true;
pulse.enable = true; pulse.enable = true;
}; };
xdg.portal = {
enable = true;
wlr.enable = true;
# gtk portal needed to make gtk apps happy
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
config = {
common = {
default = [
"gtk"
];
"org.freedesktop.impl.portal.ScreenCast" = "wlr";
"org.freedesktop.impl.portal.Screenshot" = "wlr";
};
};
};
}; };
} }