Add nfs mount

This commit is contained in:
Torjus Håkestad 2024-03-05 15:54:53 +01:00
parent ffc6e57b23
commit ef1843801f
2 changed files with 5 additions and 1 deletions

View File

@ -14,6 +14,7 @@
enable = true; enable = true;
configurationLimit = 10; configurationLimit = 10;
}; };
boot.supportedFilesystems = [ "nfs" ];
boot.loader.efi = { canTouchEfiVariables = true; }; boot.loader.efi = { canTouchEfiVariables = true; };

View File

@ -1,7 +1,10 @@
{ pkgs, ... }: { { pkgs, ... }: {
environment.systemPackages = with pkgs; [
nfs-utils
];
services.rpcbind.enable = true; services.rpcbind.enable = true;
systemd.mounts = [{ systemd.mounts = [{
type = "nfs4"; type = "nfs";
mountConfig = { mountConfig = {
Options = "rw,soft,noatime"; Options = "rw,soft,noatime";
}; };