22 lines
417 B
Nix
22 lines
417 B
Nix
{ config, lib, pkgs, settings, ... }:
|
|
|
|
{
|
|
services.rpcbind.enable = true; # needed for NFS
|
|
systemd.mounts = [{
|
|
type = "nfs";
|
|
mountConfig = {
|
|
Options = "noatime";
|
|
};
|
|
what = "10.0.0.5:/mnt/merged";
|
|
where = "/mnt/merged";
|
|
}];
|
|
|
|
systemd.automounts = [{
|
|
wantedBy = [ "multi-user.target" ];
|
|
automountConfig = {
|
|
TimeoutIdleSec = "600";
|
|
};
|
|
where = "/mnt/merged";
|
|
}];
|
|
}
|