nixosTests.*: update to use virtualisation.fileSystems

This commit is contained in:
Maciej Krüger
2021-02-14 12:23:50 +01:00
parent 45b8e83128
commit 59eb6d3ee3
14 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ in
networking.domain = "nfs.test";
networking.hostName = "client";
fileSystems = lib.mkVMOverride
virtualisation.fileSystems =
{ "/data" = {
device = "server.nfs.test:/";
fsType = "nfs";
+1 -1
View File
@@ -4,7 +4,7 @@ let
client =
{ pkgs, ... }:
{ fileSystems = pkgs.lib.mkVMOverride
{ virtualisation.fileSystems =
{ "/data" =
{ # nfs4 exports the export with fsid=0 as a virtual root directory
device = if (version == 4) then "server:/" else "server:/data";