* Set `services.nfsKernel.client.enable' automatically if there is a

filesystem with type "nfs" or "nfs4".

svn path=/nixos/branches/boot-order/; revision=22189
This commit is contained in:
Eelco Dolstra 2010-06-08 16:14:41 +00:00
parent 2678f947fb
commit 5ddaf9b963
2 changed files with 2 additions and 3 deletions

View File

@ -21,7 +21,7 @@ in
services.nfsKernel = {
client.enable = mkOption {
default = false;
default = any (fs: fs.fsType == "nfs" || fs.fsType == "nfs4") config.fileSystems;
description = ''
Whether to enable the kernel's NFS client daemons.
'';

View File

@ -5,8 +5,7 @@
nodes =
{ client =
{ config, pkgs, ... }:
{ services.nfsKernel.client.enable = true;
fileSystems = pkgs.lib.mkOverride 50 {}
{ fileSystems = pkgs.lib.mkOverride 50 {}
[ { mountPoint = "/data";
device = "server:/data";
fsType = "nfs";