summaryrefslogtreecommitdiff
path: root/templates/default.nix
blob: 349f9df4cc7c26a3233ea1dce150f08fec254239 (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";
  }