summaryrefslogtreecommitdiff
path: root/templates/default.nix
blob: 62f535e19391d512ffd319da8928b151b4933311 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
self:
let
  # string -> string -> {}
  toTemplate = name: description: {
    path = self + "/templates/" + name;
    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";
}