2009-08-16 22:48:46 +01:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
with pkgs.lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
config = {
|
|
|
|
|
2009-09-25 21:12:35 +01:00
|
|
|
environment.systemPackages = [ pkgs.polkit ];
|
2009-08-16 22:48:46 +01:00
|
|
|
|
2009-09-25 21:12:35 +01:00
|
|
|
services.dbus.packages = [ pkgs.polkit ];
|
2009-08-16 22:48:46 +01:00
|
|
|
|
|
|
|
security.pam.services = [ { name = "polkit-1"; } ];
|
|
|
|
|
|
|
|
security.setuidPrograms = [ "pkexec" ];
|
|
|
|
|
|
|
|
system.activationScripts.policyKit = pkgs.stringsWithDeps.noDepEntry
|
|
|
|
''
|
|
|
|
mkdir -p /var/lib/polkit-1
|
|
|
|
'';
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2009-08-17 02:16:38 +01:00
|
|
|
}
|