mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
feat!: switch to full flake-parts
This commit is contained in:
parent
7d82c3cee9
commit
7d614f784c
55 changed files with 4443 additions and 4188 deletions
26
nix/templates.nix
Normal file
26
nix/templates.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ self, ... }:
|
||||
{
|
||||
flake = _: {
|
||||
templates =
|
||||
let
|
||||
mkTemplates = names: builtins.listToAttrs (map
|
||||
(name: {
|
||||
inherit name;
|
||||
value = {
|
||||
path = "${self}/templates/${name}";
|
||||
description = "${name} project ";
|
||||
};
|
||||
})
|
||||
names);
|
||||
templateNames = [
|
||||
"python"
|
||||
"rust"
|
||||
"go"
|
||||
"cpp"
|
||||
"latex"
|
||||
"default"
|
||||
];
|
||||
in
|
||||
mkTemplates templateNames;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue