summaryrefslogtreecommitdiff
path: root/templates/default.nix
blob: 67d62a03d193e1d05db336805f3c41280f166f4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{self, ...}: {
  flake = {
    templates = let
      # string -> string -> {}
      mkTemplate = name: description: {
        path = "${self}/templates/${name}";
        inherit description;
      };
    in {
      basic = mkTemplate "basic" "minimal boilerplate for my flakes";
      full = mkTemplate "full" "big template for complex flakes (using flake-parts)";
    };
  };
}