* Install a PolicyKit policy configuration file. There should be a
configuration option to add to this file. svn path=/nixos/trunk/; revision=17436
This commit is contained in:
parent
a83e308856
commit
3d5462c980
@ -2,6 +2,21 @@
|
|||||||
|
|
||||||
with pkgs.lib;
|
with pkgs.lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
|
||||||
|
conf = pkgs.writeText "PolicyKit.conf"
|
||||||
|
''
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
|
||||||
|
"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">
|
||||||
|
|
||||||
|
<config version="0.1">
|
||||||
|
</config>
|
||||||
|
'';
|
||||||
|
|
||||||
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
@ -23,6 +38,11 @@ with pkgs.lib;
|
|||||||
gid = config.ids.gids.polkituser;
|
gid = config.ids.gids.polkituser;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.etc = singleton
|
||||||
|
{ source = conf;
|
||||||
|
target = "PolicyKit/PolicyKit.conf";
|
||||||
|
};
|
||||||
|
|
||||||
system.activationScripts.policyKit = fullDepEntry
|
system.activationScripts.policyKit = fullDepEntry
|
||||||
''
|
''
|
||||||
mkdir -m 0770 -p /var/run/PolicyKit
|
mkdir -m 0770 -p /var/run/PolicyKit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user