From ea7b5bb8b0462a01fc5288eb94dca0b0d779bd2b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 1 Sep 2015 11:59:01 +0200 Subject: [PATCH] Fix NFSv4 test http://hydra.nixos.org/build/25349071 --- nixos/modules/services/network-filesystems/nfsd.nix | 5 +---- nixos/tests/nfs.nix | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/nixos/modules/services/network-filesystems/nfsd.nix b/nixos/modules/services/network-filesystems/nfsd.nix index 33b7ec3d9f1c..f1838224098b 100644 --- a/nixos/modules/services/network-filesystems/nfsd.nix +++ b/nixos/modules/services/network-filesystems/nfsd.nix @@ -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" ]; diff --git a/nixos/tests/nfs.nix b/nixos/tests/nfs.nix index 963776dd2acf..24f6e0f2ed95 100644 --- a/nixos/tests/nfs.nix +++ b/nixos/tests/nfs.nix @@ -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}"; }