* 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 = {
|
services.nfsKernel = {
|
||||||
|
|
||||||
client.enable = mkOption {
|
client.enable = mkOption {
|
||||||
default = false;
|
default = any (fs: fs.fsType == "nfs" || fs.fsType == "nfs4") config.fileSystems;
|
||||||
description = ''
|
description = ''
|
||||||
Whether to enable the kernel's NFS client daemons.
|
Whether to enable the kernel's NFS client daemons.
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -5,8 +5,7 @@
|
||||||
nodes =
|
nodes =
|
||||||
{ client =
|
{ client =
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{ services.nfsKernel.client.enable = true;
|
{ fileSystems = pkgs.lib.mkOverride 50 {}
|
||||||
fileSystems = pkgs.lib.mkOverride 50 {}
|
|
||||||
[ { mountPoint = "/data";
|
[ { mountPoint = "/data";
|
||||||
device = "server:/data";
|
device = "server:/data";
|
||||||
fsType = "nfs";
|
fsType = "nfs";
|
||||||
|
|
Loading…
Reference in New Issue