hyprland: setup xdg declarative

This commit is contained in:
Christoph Hollizeck 2025-08-18 20:54:14 +02:00
parent fb4b5d0cbe
commit 5dd3c43865
Signed by: Daholli
GPG key ID: 249300664F2AF2C7

View file

@ -118,6 +118,9 @@ in
focus-1password focus-1password
hyprpanel hyprpanel
#####
xdg-dbus-proxy
]; ];
programs = { programs = {
@ -125,19 +128,52 @@ in
enable = true; enable = true;
package = hyprland-package; package = hyprland-package;
portalPackage = inputs.hyprland.packages.${system}.xdg-desktop-portal-hyprland; portalPackage = inputs.hyprland.packages.${system}.xdg-desktop-portal-hyprland;
withUWSM = true;
}; };
}; };
services.greetd = { xdg = {
autostart.enable = true;
portal = {
enable = true; enable = true;
settings = rec { extraPortals = [
initial_session = { pkgs.xdg-desktop-portal
command = "${hyprland-package}/bin/Hyprland"; pkgs.xdg-desktop-portal-gtk
user = "cholli"; ];
xdgOpenUsePortal = true;
config = {
common = {
default = [ "*" ];
"org.freedesktop.impl.portal.Secret" = [ "gnome-keyring" ];
};
hyprland = {
default = [
"hyprland"
"gtk"
];
"org.freedesktop.impl.portal.FileChooser" = [ "gtk" ];
"org.freedesktop.impl.portal.OpenURI" = [ "gtk" ];
};
};
};
}; };
default_session = initial_session; # services.greetd = {
}; # enable = true;
# settings = rec {
# initial_session = {
# command = "${hyprland-package}/bin/Hyprland";
# user = "cholli";
# };
# default_session = initial_session;
# };
# };
#
services.displayManager.gdm = {
enable = true;
wayland = true;
}; };
${namespace} = { ${namespace} = {
@ -164,6 +200,7 @@ in
enable = true; enable = true;
package = hyprland-package; package = hyprland-package;
plugins = [ inputs.hy3.packages.${system}.hy3 ]; plugins = [ inputs.hy3.packages.${system}.hy3 ];
systemd.variables = [ "--all" ];
settings = mkMerge [ settings = mkMerge [
{ {
"$mod" = "SUPER"; "$mod" = "SUPER";
@ -171,7 +208,7 @@ in
exec-once = [ exec-once = [
"systemctl --user start hyprpolkitagent" "systemctl --user start hyprpolkitagent"
"[workspace 2 silent] steam --disable-gpu-compositing" # nvidia pls let me have nice things "[workspace 2 silent] steam"
"[workspace 8 silent] discord" "[workspace 8 silent] discord"
"[workspace 9 silent] ELECTRON_OZONE_PLATFORM_HINT=x11 1password" # fix for promts not showing up anymore "[workspace 9 silent] ELECTRON_OZONE_PLATFORM_HINT=x11 1password" # fix for promts not showing up anymore
"[workspace 1 silent] zen-beta" "[workspace 1 silent] zen-beta"
@ -250,8 +287,7 @@ in
]; ];
}; };
bind = bind = [
[
# compositor commands # compositor commands
"$mod SHIFT, R, exec, hyprctl reload" "$mod SHIFT, R, exec, hyprctl reload"
"$mod SHIFT, Q, killactive," "$mod SHIFT, Q, killactive,"