mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-15 00:36:25 +00:00
28 lines
609 B
Nix
28 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";
|
||
|
# }];
|
||
|
}
|