Skip to content

Commit d5dd281

Browse files
committed
feat: wire templates output in flake.nix
1 parent a59e40d commit d5dd281

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

flake.nix

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,26 @@
131131
) { } (builtins.attrNames reg)
132132
);
133133

134+
# Flake templates for downstream consumers
135+
templates = {
136+
default = {
137+
path = ./templates/devshell;
138+
description = "Dev shell with toolbox packages";
139+
};
140+
devshell = {
141+
path = ./templates/devshell;
142+
description = "Dev shell with toolbox packages";
143+
};
144+
go = {
145+
path = ./templates/go;
146+
description = "Go project with toolbox Go toolchain";
147+
};
148+
rust = {
149+
path = ./templates/rust;
150+
description = "Rust project with toolbox Rust toolchain";
151+
};
152+
};
153+
134154
# Development shell via devenv (activated by direnv)
135155
devShells = forAllSystems (
136156
system:

0 commit comments

Comments
 (0)