fixing xdg stuff
This commit is contained in:
parent
2afbfc975f
commit
28ec24b51a
3 changed files with 12 additions and 5 deletions
|
@ -29,7 +29,7 @@
|
||||||
profiling = false;
|
profiling = false;
|
||||||
extraAliases = {
|
extraAliases = {
|
||||||
cls = "clear";
|
cls = "clear";
|
||||||
|
Hyprland = "dbus-run-session Hyprland";
|
||||||
};
|
};
|
||||||
ohmyzsh = {
|
ohmyzsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -22,8 +22,8 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
environment.sessionVariables = mkIf cfg.nvidia.enable {
|
environment.sessionVariables = mkIf cfg.nvidia.enable {
|
||||||
LIBVA_DRIVER_NAME = "nvidia";
|
LIBVA_DRIVER_NAME = "nvidia";
|
||||||
XDG_SESSION_TYPE = "wayland";
|
XDG_SESSION_TYPE = "wayland";
|
||||||
GBM_BACKEND = "nvidia-drm";
|
GBM_BACKEND = "nvidia-drm";
|
||||||
|
@ -38,11 +38,16 @@ in {
|
||||||
GTK_USE_PORTAL = "1";
|
GTK_USE_PORTAL = "1";
|
||||||
NIXOS_XDG_OPEN_USE_PORTAL = "1";
|
NIXOS_XDG_OPEN_USE_PORTAL = "1";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.hyprland = {
|
programs.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.portal.wlr.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;
|
xdg.portal.lxqt.enable = false;
|
||||||
systemd.user.services.xdg-desktop-portal-gnome.enable = false;
|
systemd.user.services.xdg-desktop-portal-gnome.enable = false;
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,8 @@ in {
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
pavucontrol
|
pavucontrol
|
||||||
wofi
|
wofi
|
||||||
|
dolphin
|
||||||
|
xdg-utils # xdg-mime script
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue