parent
6cadec8906
commit
ea7b5bb8b0
|
@ -88,10 +88,7 @@ in
|
|||
|
||||
environment.systemPackages = [ pkgs.nfs-utils ];
|
||||
|
||||
environment.etc = singleton
|
||||
{ source = exports;
|
||||
target = "exports";
|
||||
};
|
||||
environment.etc.exports.source = exports;
|
||||
|
||||
boot.kernelModules = [ "nfsd" ];
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ let
|
|||
{ config, pkgs, ... }:
|
||||
{ fileSystems = pkgs.lib.mkVMOverride
|
||||
[ { mountPoint = "/data";
|
||||
device = "server:${if version == 4 then "/" else "/data"}";
|
||||
device = "server:/data";
|
||||
fsType = "nfs";
|
||||
options = "vers=${toString version}";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue