nix-config/modules/dvb-dump-nfs-automount.nix

29 lines
511 B
Nix
Raw Permalink Normal View History

2025-01-26 14:16:47 +01:00
{ pkgs, ... }:
2024-12-31 13:52:57 +00:00
{
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
}