Added portals to home/desktop/hypreland.nix

This commit is contained in:
2026-02-22 21:36:28 +01:00
parent 2b8def6e45
commit bc7a6dc667
5 changed files with 300 additions and 234 deletions
+256 -234
View File
File diff suppressed because it is too large Load Diff
+22
View File
@@ -1094,6 +1094,11 @@ The configuration is done in the home manager section.
];
config.common.default = [ "hyprland" "gtk" ];
};
# Hyprland alleen voor screensharing / remote desktop
config.hyprland = {
"org.freedesktop.impl.portal.Screencast" = [ "hyprland" ];
"org.freedesktop.impl.portal.RemoteDesktop" = [ "hyprland" ];
};
environment.systemPackages = with pkgs; [
walker
uwsm
@@ -1509,6 +1514,23 @@ in
source = flakeRoot + "/assets/conf/desktop/hypr/scripts/lid-lock.sh";
executable = true;
};
xdg.portal = {
enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal-gtk
xdg-desktop-portal-hyprland
];
# GTK als algemene backend (OpenURI is daar betrouwbaar)
config.common.default = [ "gtk" ];
# Hyprland alleen voor screensharing / remote desktop
config.hyprland = {
"org.freedesktop.impl.portal.Screencast" = [ "hyprland" ];
"org.freedesktop.impl.portal.RemoteDesktop" = [ "hyprland" ];
};
};
}
#+end_src
@@ -25,6 +25,11 @@
];
config.common.default = [ "hyprland" "gtk" ];
};
# Hyprland alleen voor screensharing / remote desktop
config.hyprland = {
"org.freedesktop.impl.portal.Screencast" = [ "hyprland" ];
"org.freedesktop.impl.portal.RemoteDesktop" = [ "hyprland" ];
};
environment.systemPackages = with pkgs; [
walker
uwsm
Binary file not shown.
+17
View File
@@ -20,4 +20,21 @@ in
source = flakeRoot + "/assets/conf/desktop/hypr/scripts/lid-lock.sh";
executable = true;
};
xdg.portal = {
enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal-gtk
xdg-desktop-portal-hyprland
];
# GTK als algemene backend (OpenURI is daar betrouwbaar)
config.common.default = [ "gtk" ];
# Hyprland alleen voor screensharing / remote desktop
config.hyprland = {
"org.freedesktop.impl.portal.Screencast" = [ "hyprland" ];
"org.freedesktop.impl.portal.RemoteDesktop" = [ "hyprland" ];
};
};
}