summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-05-17 02:54:40 -0400
committerseth <[email protected]>2023-05-17 02:54:40 -0400
commit423914276f9623786e1d33e486b26a1406115067 (patch)
tree0e4b9453d7d03343168ed0e1d3a6e380caf3e124 /flake.nix
parente727e435f50027c30d3311020c64ead42c146d66 (diff)
templates: init basic & full
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 9fb4959..df7f8c4 100644
--- a/flake.nix
+++ b/flake.nix
@@ -62,5 +62,19 @@
lib = import ./lib nixpkgs.lib;
overlays.default = final: prev: packageSet final // overrides prev;
+
+ templates = let
+ # string -> string -> {}
+ mkTemplate = name: description: {
+ path = builtins.path {
+ name = "${name}-template-src";
+ path = ./templates/${name};
+ };
+ inherit description;
+ };
+ in {
+ basic = mkTemplate "basic" "minimal boilerplate for my flakes";
+ full = mkTemplate "full" "big template for complex flakes (using flake-parts)";
+ };
};
}