feat: dynamic structure for templates in flake.nix

This commit is contained in:
Leon Schwarzäugl 2024-12-31 17:17:42 +01:00
parent efd667c76a
commit f4f98b248d
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
4 changed files with 95 additions and 59 deletions

View file

@ -1,8 +1,8 @@
rec {
python = {
path = ./python;
description =
"Python Project";
};
default = python;
}
{ lib, ... }:
let
templateNames = [
"python"
"rust"
];
in
lib.swarselsystems.mkTemplates templateNames