Added portals to home/desktop/hypreland.nix
This commit is contained in:
+256
-234
File diff suppressed because it is too large
Load Diff
@@ -1093,6 +1093,11 @@ The configuration is done in the home manager section.
|
||||
xdg-desktop-portal-gtk
|
||||
];
|
||||
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
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -24,6 +24,11 @@
|
||||
xdg-desktop-portal-gtk
|
||||
];
|
||||
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
|
||||
|
||||
Binary file not shown.
@@ -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" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user