NFS: Difference between revisions
imported>Allopsychic21 forgot to add rpcbind service |
imported>NetaliDev fix syntax for systemd mounts |
||
| Line 139: | Line 139: | ||
{ | { | ||
services.rpcbind.enable = true; # needed for NFS | services.rpcbind.enable = true; # needed for NFS | ||
systemd.mounts = { | systemd.mounts = [{ | ||
type = "nfs"; | type = "nfs"; | ||
mountConfig = { | mountConfig = { | ||
| Line 146: | Line 146: | ||
what = "server:/tomoyo"; | what = "server:/tomoyo"; | ||
where = "/mnt/tomoyo"; | where = "/mnt/tomoyo"; | ||
}; | }]; | ||
systemd.automounts = { | systemd.automounts = [{ | ||
wantedBy = [ "multi-user.target" ]; | wantedBy = [ "multi-user.target" ]; | ||
automountConfig = { | automountConfig = { | ||
| Line 154: | Line 154: | ||
}; | }; | ||
where = "/mnt/tomoyo"; | where = "/mnt/tomoyo"; | ||
}; | }]; | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||