mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 17:17:22 +01:00
26 lines
521 B
Nix
26 lines
521 B
Nix
{ self, ... }:
|
|
{
|
|
flake = _: {
|
|
templates =
|
|
let
|
|
mkTemplates = names: builtins.listToAttrs (map
|
|
(name: {
|
|
inherit name;
|
|
value = {
|
|
path = "${self}/files/templates/${name}";
|
|
description = "${name} project ";
|
|
};
|
|
})
|
|
names);
|
|
templateNames = [
|
|
"python"
|
|
"rust"
|
|
"go"
|
|
"cpp"
|
|
"latex"
|
|
"default"
|
|
];
|
|
in
|
|
mkTemplates templateNames;
|
|
};
|
|
}
|