2009-08-16 23:48:46 +02:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
with pkgs.lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
config = {
|
|
|
|
|
2009-09-25 22:12:35 +02:00
|
|
|
environment.systemPackages = [ pkgs.polkit ];
|
2009-08-16 23:48:46 +02:00
|
|
|
|
2009-09-25 22:12:35 +02:00
|
|
|
services.dbus.packages = [ pkgs.polkit ];
|
2009-08-16 23:48:46 +02: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 03:16:38 +02:00
|
|
|
}
|