mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 00:54:11 +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
|
|
'';
|
|
|
|
};
|
|
|
|
}
|