mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
feat: dynamic structure for templates in flake.nix
This commit is contained in:
parent
efd667c76a
commit
f4f98b248d
4 changed files with 95 additions and 59 deletions
|
|
@ -78,6 +78,16 @@
|
|||
})
|
||||
names);
|
||||
|
||||
mkTemplates = names: builtins.listToAttrs (map
|
||||
(name: {
|
||||
inherit name;
|
||||
value = {
|
||||
path = "${self}/templates/${name}";
|
||||
description = "${name} project ";
|
||||
};
|
||||
})
|
||||
names);
|
||||
|
||||
eachMonitor = _: monitor: {
|
||||
inherit (monitor) name;
|
||||
value = builtins.removeAttrs monitor [ "workspace" "name" "output" ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue