nix-config/nixos/_mixins/network-shares/ds418-nfs.nix
2024-05-23 15:02:20 -04:00

27 lines
609 B
Nix

{ pkgs, ... }: {
# more info in https://nixos.wiki/wiki/NFS
services.rpcbind.enable = true; # needed for NFS
boot.kernelModules = [ "nfsd" ];
environment.systemPackages = with pkgs; [ nfs-utils ];
# systemd.mounts = [{
# type = "nfs";
# mountConfig = {
# Options = "noatime";
# };
# what = "nas-ds418-00:/";
# where = "/mnt/nas-ds418-00";
# }];
# systemd.automounts = [{
# wantedBy = [ "multi-user.target" ];
# wants = [ "nfs-client.target" ];
# automountConfig = {
# TimeoutIdleSec = "600";
# };
# where = "/mnt/nas-ds418-00";
# }];
}