From 75da958c43f3aa62238d5fe7f78dbb1ad87cf2a9 Mon Sep 17 00:00:00 2001 From: alsaiduq-lab Date: Tue, 2 Dec 2025 08:58:50 -0700 Subject: [PATCH] fixed polkit --- hosts/modules/hyprland.nix | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/hosts/modules/hyprland.nix b/hosts/modules/hyprland.nix index f4f9cc0..20887ee 100644 --- a/hosts/modules/hyprland.nix +++ b/hosts/modules/hyprland.nix @@ -1,10 +1,4 @@ -{ - lib, - config, - pkgs, - inputs, - ... -}: { +{pkgs, ...}: { services.xserver.enable = false; programs.hyprland = { @@ -14,15 +8,15 @@ xdg.portal = { enable = true; - extraPortals = [ pkgs.xdg-desktop-portal-gtk ]; + extraPortals = [pkgs.xdg-desktop-portal-gtk]; config = { common = { - default = [ "gtk" ]; + default = ["gtk"]; }; hyprland = { - default = [ "gtk" ]; - "org.freedesktop.impl.portal.ScreenCast" = [ "hyprland" ]; - "org.freedesktop.impl.portal.Screenshot" = [ "hyprland" ]; + default = ["gtk"]; + "org.freedesktop.impl.portal.ScreenCast" = ["hyprland"]; + "org.freedesktop.impl.portal.Screenshot" = ["hyprland"]; }; }; }; @@ -31,6 +25,11 @@ services.accounts-daemon.enable = true; + systemd.user.services.hyprpolkitagent = { + enable = true; + wantedBy = ["graphical-session.target"]; + }; + environment.systemPackages = with pkgs; [ qt5.qtwayland qt6.qtwayland