polkit fix (letting sand think was a mistake)

This commit is contained in:
Schrottkatze 2025-09-22 17:05:37 +02:00
parent d9a3511846
commit ecb6959892
Signed by: schrottkatze
SSH key fingerprint: SHA256:/raZeWZ2RLThYkX/nq26frnmA4Bi3qRM/hijRmDBa10
2 changed files with 23 additions and 1 deletions

View file

@ -8,9 +8,9 @@
./locale.nix
./printing.nix
./themeing.nix
./polkit-fix.nix
];
services.flatpak.enable = true;
security.polkit.enable = true;
services.illum.enable = true;
services.upower.enable = true;

View file

@ -0,0 +1,22 @@
{ pkgs, ... }:
{
# idk why but without this, polkit does't work
# letting sand think was a fucking mistake
security.polkit.enable = true;
systemd.user.services.niri-flake-polkit.enable = false;
# stolen from https://nixos.wiki/wiki/Polkit on 2025-09-22T17
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;
};
};
}