summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/default.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/default.nix b/templates/default.nix
new file mode 100644
index 0000000..349f9df
--- /dev/null
+++ b/templates/default.nix
@@ -0,0 +1,16 @@
+let
+ # string -> string -> {}
+ toTemplate = name: description: {
+ path = builtins.path {
+ path = ./${name};
+ name = "${name}-template";
+ };
+
+ inherit description;
+ };
+in
+ builtins.mapAttrs toTemplate {
+ basic = "minimal boilerplate for my flakes";
+ full = "big template for complex flakes (using flake-parts)";
+ nixos = "minimal boilerplate for flake-based nixos configuration";
+ }