diff --git a/nix/modules/nfs-mesh.nix b/nix/modules/nfs-mesh.nix index 2291f8d..31b3849 100644 --- a/nix/modules/nfs-mesh.nix +++ b/nix/modules/nfs-mesh.nix @@ -74,7 +74,7 @@ in }; }; - config = lib.mkIf cfg.enable { + config = lib.mkIf (cfg.enable && lib.elem config.networking.hostName cfg.hosts) { boot.supportedFilesystems = [ "nfs" ]; services.rpcbind.enable = true;