polkit fix (letting sand think was a mistake)
This commit is contained in:
parent
d9a3511846
commit
ecb6959892
2 changed files with 23 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
22
modules/desktop/polkit-fix.nix
Normal file
22
modules/desktop/polkit-fix.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue