summary refs log tree commit diff
path: root/nixos/modules/security/polkit.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-04-19 14:29:02 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-04-19 14:29:02 +0200
commitfa9ed04997cc07d0782b79ec1929af2ac24e0045 (patch)
treefa160cd9b4dea3dadf68112431fe978cab65ebfb /nixos/modules/security/polkit.nix
parent82535e0f8fc485db52ff976b9ef7d11096a8dfa3 (diff)
downloadnixpkgs-fa9ed04997cc07d0782b79ec1929af2ac24e0045.tar
nixpkgs-fa9ed04997cc07d0782b79ec1929af2ac24e0045.tar.gz
nixpkgs-fa9ed04997cc07d0782b79ec1929af2ac24e0045.tar.bz2
nixpkgs-fa9ed04997cc07d0782b79ec1929af2ac24e0045.tar.lz
nixpkgs-fa9ed04997cc07d0782b79ec1929af2ac24e0045.tar.xz
nixpkgs-fa9ed04997cc07d0782b79ec1929af2ac24e0045.tar.zst
nixpkgs-fa9ed04997cc07d0782b79ec1929af2ac24e0045.zip
Restart polkit if its configuration may have changed
Diffstat (limited to 'nixos/modules/security/polkit.nix')
-rw-r--r--nixos/modules/security/polkit.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/security/polkit.nix b/nixos/modules/security/polkit.nix
index 054d39c4785..5933cdc0cec 100644
--- a/nixos/modules/security/polkit.nix
+++ b/nixos/modules/security/polkit.nix
@@ -63,6 +63,9 @@ in
 
     systemd.packages = [ pkgs.polkit ];
 
+    systemd.services.polkit.restartTriggers = [ config.system.path ];
+    systemd.services.polkit.unitConfig.X-StopIfChanged = false;
+
     # The polkit daemon reads action/rule files
     environment.pathsToLink = [ "/share/polkit-1" ];