summaryrefslogtreecommitdiff
path: root/templates/default.nix
blob: 1c67349d99828a953bb2e805c7999657db53d644 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
let
  # string -> string -> {}
  toTemplate = name: description: {
    path = builtins.path {
      path = ./${name};
      name = "${name}-template";
    };

    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";
}