forked from mirrors/nixpkgs
3e5912833d
svn path=/nixos/trunk/; revision=17427
25 lines
393 B
Nix
25 lines
393 B
Nix
{ config, pkgs, ... }:
|
|
|
|
with pkgs.lib;
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
environment.systemPackages = [ pkgs.polkit ];
|
|
|
|
services.dbus.packages = [ pkgs.polkit ];
|
|
|
|
security.pam.services = [ { name = "polkit-1"; } ];
|
|
|
|
security.setuidPrograms = [ "pkexec" ];
|
|
|
|
system.activationScripts.policyKit = pkgs.stringsWithDeps.noDepEntry
|
|
''
|
|
mkdir -p /var/lib/polkit-1
|
|
'';
|
|
|
|
};
|
|
|
|
}
|