fixed polkit

This commit is contained in:
alsaiduq-lab 2025-12-02 08:58:50 -07:00
parent 465875dfaa
commit 75da958c43

View file

@ -1,10 +1,4 @@
{ {pkgs, ...}: {
lib,
config,
pkgs,
inputs,
...
}: {
services.xserver.enable = false; services.xserver.enable = false;
programs.hyprland = { programs.hyprland = {
@ -14,15 +8,15 @@
xdg.portal = { xdg.portal = {
enable = true; enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-gtk ]; extraPortals = [pkgs.xdg-desktop-portal-gtk];
config = { config = {
common = { common = {
default = [ "gtk" ]; default = ["gtk"];
}; };
hyprland = { hyprland = {
default = [ "gtk" ]; default = ["gtk"];
"org.freedesktop.impl.portal.ScreenCast" = [ "hyprland" ]; "org.freedesktop.impl.portal.ScreenCast" = ["hyprland"];
"org.freedesktop.impl.portal.Screenshot" = [ "hyprland" ]; "org.freedesktop.impl.portal.Screenshot" = ["hyprland"];
}; };
}; };
}; };
@ -31,6 +25,11 @@
services.accounts-daemon.enable = true; services.accounts-daemon.enable = true;
systemd.user.services.hyprpolkitagent = {
enable = true;
wantedBy = ["graphical-session.target"];
};
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
qt5.qtwayland qt5.qtwayland
qt6.qtwayland qt6.qtwayland