2024-12-31 13:52:57 +00:00
|
|
|
{ pkgs, lib, ... }:
|
|
|
|
{
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [ nfs-utils ];
|
|
|
|
services.rpcbind.enable = true;
|
|
|
|
|
2025-01-11 03:55:19 +01:00
|
|
|
systemd.mounts = [
|
|
|
|
{
|
|
|
|
type = "nfs";
|
|
|
|
mountConfig = {
|
|
|
|
Options = "noatime";
|
|
|
|
};
|
|
|
|
what = "10.13.37.5:/";
|
|
|
|
where = "/mnt/dvb";
|
|
|
|
}
|
|
|
|
];
|
2024-12-31 13:52:57 +00:00
|
|
|
|
2025-01-11 03:55:19 +01:00
|
|
|
systemd.automounts = [
|
|
|
|
{
|
|
|
|
wantedBy = [ "multi-user.target" ];
|
|
|
|
requires = [ "wg-quick-wg-dvb.service" ];
|
|
|
|
automountConfig = {
|
|
|
|
TimeoutIdleSec = "600";
|
|
|
|
};
|
|
|
|
where = "/mnt/dvb";
|
|
|
|
}
|
|
|
|
];
|
2024-12-31 13:52:57 +00:00
|
|
|
}
|