Regenerated

This commit is contained in:
2026-03-30 12:34:31 +00:00
parent 1c486dc51e
commit 8f5c5a0f4f
3 changed files with 327 additions and 303 deletions
@@ -3,7 +3,10 @@
let
# Use the config option defaultUser directly, fallback to "henrov"
username = config.defaultUser or "henrov";
xdgPortalHyprlandPkg = pkgs.xdg-desktop-portal-hyprland;
# Portal backends
basePortal = pkgs.xdg-desktop-portal-gtk; # full portal implementation
hyprlandPortal = pkgs.xdg-desktop-portal-hyprland; # Hyprland screencast
in
{
#################################
@@ -11,16 +14,20 @@ in
#################################
xdg.portal.enable = true;
# Use Hyprland portal backend specifically for screencast
# Base + Hyprland portals
xdg.portal.extraPortals = [ basePortal hyprlandPortal ];
# Map screencast interface explicitly to Hyprland
xdg.portal.configPackages = {
"org.freedesktop.impl.portal.Screencast" = [ xdgPortalHyprlandPkg ];
"org.freedesktop.impl.portal.Screencast" = [ hyprlandPortal ];
};
#################################
# Install portal packages system-wide
#################################
environment.systemPackages = [
xdgPortalHyprlandPkg
basePortal
hyprlandPortal
];
#################################
@@ -29,7 +36,8 @@ in
home-manager.users = {
${username} = {
home.packages = [
xdgPortalHyprlandPkg
basePortal
hyprlandPortal
];
};
};