diff --git a/hosts/lars/default.nix b/hosts/lars/default.nix index 135c60f..dfed115 100644 --- a/hosts/lars/default.nix +++ b/hosts/lars/default.nix @@ -29,7 +29,7 @@ profiling = false; extraAliases = { cls = "clear"; - + Hyprland = "dbus-run-session Hyprland"; }; ohmyzsh = { enable = true; diff --git a/hosts/lars/hyprland.nix b/hosts/lars/hyprland.nix index 1357dc7..51b35d3 100644 --- a/hosts/lars/hyprland.nix +++ b/hosts/lars/hyprland.nix @@ -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; diff --git a/hosts/lars/programs.nix b/hosts/lars/programs.nix index 8997cfc..688597c 100644 --- a/hosts/lars/programs.nix +++ b/hosts/lars/programs.nix @@ -53,6 +53,8 @@ in { wl-clipboard pavucontrol wofi + dolphin + xdg-utils # xdg-mime script ]; }; }