Skip to content

Commit 4c12871

Browse files
committed
refactor(templates): move flake-parts definition
1 parent b2bfa00 commit 4c12871

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

flake.nix

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -99,17 +99,8 @@
9999
./shell
100100
./tests
101101
./packages
102+
./templates
102103
];
103-
flake.templates = {
104-
default = {
105-
path = ./templates/default;
106-
description = "Example flake using cardano.nix";
107-
};
108-
cluster = {
109-
path = ./templates/cluster;
110-
description = "Example flake for deploying a cardano.nix cluster with multiple nodes, load balancer and monitoring";
111-
};
112-
};
113104
systems = [ "x86_64-linux" ];
114105
};
115106
}

templates/default.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
flake.templates = {
3+
default = {
4+
path = ./default;
5+
description = "Example flake using cardano.nix";
6+
};
7+
cluster = {
8+
path = ./cluster;
9+
description = "Example flake for deploying a cardano.nix cluster with multiple nodes, load balancer and monitoring";
10+
};
11+
};
12+
}

0 commit comments

Comments
 (0)