* 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:
parent
2678f947fb
commit
5ddaf9b963
|
@ -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.
|
||||
'';
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue