Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/getting-started/vm.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ This project provides a virtual machine configuration with all cardano services.

A virtual machine will be started with the following services, and the following ports forwarded from the host to the VM.

| Service | Port |
| ------------ | ---- |
| cardano-node | 3001 |
| ogmios | 1337 |
| kupo | 1442 |
| Service | Port |
| ------------ | ---------------------------------------------- |
| cardano-node | 3001 |
| ogmios | [http://localhost:1337](http://localhost:1337) |
| kupo | [http://localhost:1442](http://localhost:1442) |

You can log in with user `root`. The password is empty. In the virtual machine, `cardano-cli` is available to query the node.

Expand Down
10 changes: 10 additions & 0 deletions templates/cluster/configuration.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
system.stateVersion = "24.11";

cardano = {
network = "preview";
node.enable = true;
ogmios.enable = true;
kupo.enable = true;
};
}
12 changes: 6 additions & 6 deletions templates/cluster/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@
system = "x86_64-linux";
modules = [
{ networking.hostName = "node1"; }
./preview.nix
./configuration.nix
cardano-nix.nixosModules.default
];
};
node2 = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
{ networking.hostName = "node2"; }
./preview.nix
./configuration.nix
cardano-nix.nixosModules.default
];
};
node3 = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
{ networking.hostName = "node3"; }
./preview.nix
./configuration.nix
cardano-nix.nixosModules.default
];
};
Expand All @@ -57,9 +57,9 @@
name = "cluster";
imports = [
{
nodes.node1 = ./preview.nix;
nodes.node2 = ./preview.nix;
nodes.node3 = ./preview.nix;
nodes.node1 = ./configuration.nix;
nodes.node2 = ./configuration.nix;
nodes.node3 = ./configuration.nix;
nodes.status = ./status.nix;
nodes.proxy = ./proxy.nix;
testScript = _: ''
Expand Down
15 changes: 0 additions & 15 deletions templates/cluster/preview.nix

This file was deleted.

2 changes: 2 additions & 0 deletions templates/default/configuration.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
system.stateVersion = "24.11";

cardano = {
network = "preview";
node.enable = true;
Expand Down
9 changes: 9 additions & 0 deletions templates/default/vm.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
config,
lib,
modulesPath,
...
Expand All @@ -21,6 +22,14 @@
users.users.root.password = "";
services.getty.autologinUser = "root";

services.ogmios.host = "0.0.0.0";
services.kupo.host = "0.0.0.0";

networking.firewall.allowedTCPPorts = [
config.services.ogmios.port
config.services.kupo.port
];

virtualisation = {
cores = 2;
memorySize = lib.mkDefault 4096;
Expand Down