* Tell PolicyKit about the policies of HAL and ConsoleKit.

svn path=/nixos/trunk/; revision=17439
This commit is contained in:
Eelco Dolstra 2009-09-26 10:32:57 +00:00
parent 693e017bfe
commit d933f55e45

View File

@ -38,11 +38,19 @@ in
gid = config.ids.gids.polkituser;
};
environment.etc = singleton
{ source = conf;
target = "PolicyKit/PolicyKit.conf";
};
environment.etc =
[ { source = conf;
target = "PolicyKit/PolicyKit.conf";
}
{ source = (pkgs.buildEnv {
name = "PolicyKit-policies";
pathsToLink = [ "/share/PolicyKit/policy" ];
paths = [ pkgs.policykit pkgs.consolekit pkgs.hal ];
}) + "/share/PolicyKit/policy";
target = "PolicyKit/policy";
}
];
system.activationScripts.policyKit = fullDepEntry
''
mkdir -m 0770 -p /var/run/PolicyKit