summaryrefslogtreecommitdiff
path: root/templates/default.nix
blob: 6ea1be407e31fdb3180c869fa2b32a012a919a17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
  flake = {
    templates = let
      # string -> string -> {}
      mkTemplate = name: description: {
        path = ./${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";
    };
  };
}