summaryrefslogtreecommitdiff
path: root/templates/default.nix
blob: 30c5a5d1e434cc07aa142b76e2a7be0f03dda77f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{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)";
      nixos = mkTemplate "nixos" "minimal boilerplate for flake-based nixos configuration";
    };
  };
}