Moved idmapd configuration file to Nix store.
svn path=/nixos/trunk/; revision=34037
This commit is contained in:
parent
e4200d7e61
commit
2df81f42a5
@ -10,22 +10,19 @@ let
|
|||||||
|
|
||||||
rpcMountpoint = "${nfsStateDir}/rpc_pipefs";
|
rpcMountpoint = "${nfsStateDir}/rpc_pipefs";
|
||||||
|
|
||||||
idmapdConfFile = {
|
idmapdConfFile = pkgs.writeText "idmapd.conf" ''
|
||||||
target = "idmapd.conf";
|
[General]
|
||||||
source = pkgs.writeText "idmapd.conf" ''
|
Pipefs-Directory = ${rpcMountpoint}
|
||||||
[General]
|
${optionalString (config.networking.domain != "")
|
||||||
Pipefs-Directory = ${rpcMountpoint}
|
"Domain = ${config.networking.domain}"}
|
||||||
${optionalString (config.networking.domain != "")
|
|
||||||
"Domain = ${config.networking.domain}"}
|
|
||||||
|
|
||||||
[Mapping]
|
[Mapping]
|
||||||
Nobody-User = nobody
|
Nobody-User = nobody
|
||||||
Nobody-Group = nogroup
|
Nobody-Group = nogroup
|
||||||
|
|
||||||
[Translation]
|
[Translation]
|
||||||
Method = nsswitch
|
Method = nsswitch
|
||||||
'';
|
'';
|
||||||
};
|
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
@ -99,7 +96,7 @@ in
|
|||||||
|
|
||||||
daemonType = "fork";
|
daemonType = "fork";
|
||||||
|
|
||||||
exec = "rpc.idmapd";
|
exec = "rpc.idmapd -v -c ${idmapdConfFile}";
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user