mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 09:03:48 +00:00
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
|
|
'';
|
|
|
|
};
|
|
|
|
}
|