aboutsummaryrefslogtreecommitdiff
path: root/modules/services/polkit.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/services/polkit.nix')
-rw-r--r--modules/services/polkit.nix29
1 files changed, 0 insertions, 29 deletions
diff --git a/modules/services/polkit.nix b/modules/services/polkit.nix
deleted file mode 100644
index abd050f..0000000
--- a/modules/services/polkit.nix
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- config,
- pkgs,
- lib,
- ...
-}:
-{
- options.nx.services.polkit.enable = lib.mkEnableOption "Enable and setup polkit service";
- config = lib.mkIf config.nx.services.polkit.enable {
- environment.systemPackages = with pkgs; [
- polkit
- polkit_gnome
- ];
- security.polkit.enable = 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;
- };
- };
- };
-}