fixing xdg stuff

This commit is contained in:
LarsZauberer 2024-04-14 21:11:01 +02:00
commit e40d39495e
3 changed files with 12 additions and 5 deletions

View file

@ -29,7 +29,7 @@
profiling = false;
extraAliases = {
cls = "clear";
Hyprland = "dbus-run-session Hyprland";
};
ohmyzsh = {
enable = true;

View file

@ -22,8 +22,8 @@ in {
};
};
config = mkIf cfg.enable {
environment.sessionVariables = mkIf cfg.nvidia.enable {
config = mkIf cfg.enable {
environment.sessionVariables = mkIf cfg.nvidia.enable {
LIBVA_DRIVER_NAME = "nvidia";
XDG_SESSION_TYPE = "wayland";
GBM_BACKEND = "nvidia-drm";
@ -38,11 +38,16 @@ in {
GTK_USE_PORTAL = "1";
NIXOS_XDG_OPEN_USE_PORTAL = "1";
};
programs.hyprland = {
enable = true;
xwayland.enable = true;
};
xwayland.enable = true;
};
xdg.portal.wlr.enable = true;
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
xdg.portal.config.common.default = "gtk";
xdg.portal.lxqt.enable = false;
systemd.user.services.xdg-desktop-portal-gnome.enable = false;

View file

@ -53,6 +53,8 @@ in {
wl-clipboard
pavucontrol
wofi
dolphin
xdg-utils # xdg-mime script
];
};
}