From ef1843801fd621b68da36314f0de5c4ae355993b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Tue, 5 Mar 2024 15:54:53 +0100 Subject: [PATCH] Add nfs mount --- hosts/gunter/configuration.nix | 1 + hosts/gunter/nfs.nix | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/hosts/gunter/configuration.nix b/hosts/gunter/configuration.nix index daa4d9f..d5eecc9 100644 --- a/hosts/gunter/configuration.nix +++ b/hosts/gunter/configuration.nix @@ -14,6 +14,7 @@ enable = true; configurationLimit = 10; }; + boot.supportedFilesystems = [ "nfs" ]; boot.loader.efi = { canTouchEfiVariables = true; }; diff --git a/hosts/gunter/nfs.nix b/hosts/gunter/nfs.nix index fffc689..933603e 100644 --- a/hosts/gunter/nfs.nix +++ b/hosts/gunter/nfs.nix @@ -1,7 +1,10 @@ { pkgs, ... }: { + environment.systemPackages = with pkgs; [ + nfs-utils + ]; services.rpcbind.enable = true; systemd.mounts = [{ - type = "nfs4"; + type = "nfs"; mountConfig = { Options = "rw,soft,noatime"; };