Files
copnix/nixos/desktop/window-managers/hyprland.nix
T
elwrcl 42120d7de6 Enables GSettings schemas for Hyprland
Adds the GSettings schema directory path so runtime lookups can find desktop schemas, and includes the gsettings-desktop-schemas package to provide the necessary schemas. This ensures GTK/Qt applications and theming work correctly under Hyprland by enabling proper GSettings/gtk portal support.
2026-04-12 16:44:32 +03:00

34 lines
897 B
Nix

{ config, pkgs, ... }:
{
programs.hyprland = {
enable = true;
xwayland.enable = true;
};
xdg.portal = {
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-hyprland pkgs.xdg-desktop-portal-gtk ];
config = {
common = {
default = [ "hyprland" "gtk" ];
"org.freedesktop.portal.FileChooser" = [ "gtk" ];
"org.freedesktop.portal.Screenshot" = [ "hyprland" ];
"org.freedesktop.portal.ScreenCast" = [ "hyprland" ];
};
};
};
security.polkit.enable = true;
services.gnome.gnome-keyring.enable = true;
environment.sessionVariables = {
XDG_DATA_DIRS = [
"/run/current-system/sw/share"
"/home/elars/.nix-profile/share"
];
GTK_USE_PORTAL = "1";
GSETTINGS_SCHEMA_DIR = "${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}/glib-2.0/schemas";
};
}