mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-11-27 06:37:01 +03:00
Merge pull request #389 from hsjobeki/examples-es-template
add all examples as templates
This commit is contained in:
commit
7c145b4b4d
10
flake.nix
10
flake.nix
@ -399,7 +399,9 @@
|
||||
'';
|
||||
});
|
||||
|
||||
templates = {
|
||||
templates =
|
||||
{
|
||||
default = self.templates.simple;
|
||||
simple = {
|
||||
description = "Simple dream2nix flake";
|
||||
path = ./templates/simple;
|
||||
@ -420,6 +422,10 @@
|
||||
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
// (b.mapAttrs (name: value: {
|
||||
description = "Example: ${name} template";
|
||||
path = ./examples/${name};
|
||||
}) (l.filterAttrs (n: v: v == "directory") (b.readDir ./examples)));
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user