add polkit-gnome to all hosts (excl patio, as that has kde, so already by virtue has a polkit agent and co

This commit is contained in:
cydiralis 2025-06-28 10:28:11 +01:00
parent 6e435b58e7
commit fb21a3d094
No known key found for this signature in database
7 changed files with 88 additions and 0 deletions

View file

@ -25,6 +25,24 @@
environment.pathsToLink = [ "/share/xdg-desktop-portal" ];
security.sudo.package = pkgs.sudo.override { withInsults = true; };
systemd = {
user.services.polkit-gnome-authentication-agent-1 = {
description = "polkit-gnome-authentication-agent-1";
wantedBy = [ "graphical-session.target" ];
wants = [ "graphical-session.target" ];
after = [ "graphical-session.target" ];
serviceConfig = {
Type = "simple";
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
Restart = "on-failure";
RestartSec = 1;
TimeoutStopSec = 10;
};
};
};
security.polkit.enable = true;
powerManagement.cpuFreqGovernor = "performance";
# Bootloader.
boot.loader.systemd-boot.enable = true;