diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2024-03-09 21:52:19 +0530 | 
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2024-03-09 21:52:19 +0530 | 
| commit | db0493863f4d89a074eea0b4e230ff00cea67611 (patch) | |
| tree | f3e71ae0efd67a926c2a8e7143e4fb0788857947 /modules/polkit.nix | |
| parent | d4c18c4b2f659d1b7dfceefcc06e498762b9c5e4 (diff) | |
update
Diffstat (limited to 'modules/polkit.nix')
| -rw-r--r-- | modules/polkit.nix | 21 | 
1 files changed, 21 insertions, 0 deletions
| diff --git a/modules/polkit.nix b/modules/polkit.nix new file mode 100644 index 0000000..ebfd03a --- /dev/null +++ b/modules/polkit.nix @@ -0,0 +1,21 @@ +{ pkgs, ... }: + +{ +  environment.sessionVariables.NIXOS_OZONE_WL = "1"; + +  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; +        }; +    }; +  }; +} | 
