3
0
Fork 0
forked from mirrors/nixpkgs

* A module for policy-kit (not enabled yet).

svn path=/nixos/trunk/; revision=16738
This commit is contained in:
Eelco Dolstra 2009-08-16 21:48:46 +00:00
parent 7dbf523ddc
commit ac24c7834d

View file

@ -0,0 +1,24 @@
{ config, pkgs, ... }:
with pkgs.lib;
{
config = {
environment.systemPackages = [ pkgs.policy_kit ];
services.dbus.packages = [ pkgs.policy_kit ];
security.pam.services = [ { name = "polkit-1"; } ];
security.setuidPrograms = [ "pkexec" ];
system.activationScripts.policyKit = pkgs.stringsWithDeps.noDepEntry
''
mkdir -p /var/lib/polkit-1
'';
};
}