forked from mirrors/nixpkgs
* A module for policy-kit (not enabled yet).
svn path=/nixos/trunk/; revision=16738
This commit is contained in:
parent
7dbf523ddc
commit
ac24c7834d
24
modules/security/policy-kit.nix
Normal file
24
modules/security/policy-kit.nix
Normal 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
|
||||
'';
|
||||
|
||||
};
|
||||
|
||||
}
|
Loading…
Reference in a new issue