From cad75efb468c4d1b6f49596cc8d07e80b35380b5 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sat, 3 Jun 2023 10:54:35 -0400 Subject: [PATCH] hyprland: Add polkit_gnome This is necessary so GUI applications won't seem broken when they're unable to show an authentication prompt. --- desktop/hyprland/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/desktop/hyprland/default.nix b/desktop/hyprland/default.nix index 457ea9c..9f931e6 100644 --- a/desktop/hyprland/default.nix +++ b/desktop/hyprland/default.nix @@ -4,6 +4,10 @@ programs.hyprland.enable = true; services.udisks2.enable = true; + environment.systemPackages = with pkgs; [ + polkit_gnome + ]; + services.xserver = { enable = true; displayManager.lightdm.enable = false; @@ -27,6 +31,7 @@ exec-once = fcitx5 # Japanese input support exec-once = mullvad-vpn exec-once = wl-paste -p --watch wl-copy -pc # Disable middle click paste + exec-once = ${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1 input { kb_layout = us