Moved idmapd configuration file to Nix store.

svn path=/nixos/trunk/; revision=34037
This commit is contained in:
Rickard Nilsson 2012-05-09 22:06:17 +00:00
parent e4200d7e61
commit 2df81f42a5

@ -10,22 +10,19 @@ let
rpcMountpoint = "${nfsStateDir}/rpc_pipefs";
idmapdConfFile = {
target = "idmapd.conf";
source = pkgs.writeText "idmapd.conf" ''
[General]
Pipefs-Directory = ${rpcMountpoint}
${optionalString (config.networking.domain != "")
"Domain = ${config.networking.domain}"}
idmapdConfFile = pkgs.writeText "idmapd.conf" ''
[General]
Pipefs-Directory = ${rpcMountpoint}
${optionalString (config.networking.domain != "")
"Domain = ${config.networking.domain}"}
[Mapping]
Nobody-User = nobody
Nobody-Group = nogroup
[Mapping]
Nobody-User = nobody
Nobody-Group = nogroup
[Translation]
Method = nsswitch
'';
};
[Translation]
Method = nsswitch
'';
in
@ -99,7 +96,7 @@ in
daemonType = "fork";
exec = "rpc.idmapd";
exec = "rpc.idmapd -v -c ${idmapdConfFile}";
};
};