-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using cookiecutter or similar tools to bootstrap the template #16
Comments
I've got some ideas for making the bootstrap process simpler and more automatic and this could definitely be a part of it. It'll take some time, but I'll have a new branch up soon(ish) and I'll see if this can work. |
I've decided not to opt for external tools, but instead I created a bare branch which should suffice if you're wanting the benefits of this template without any of the predefined profiles. I've also wired up the template output, so creating a new iteration of a bare template is as simple as:
|
I'm reopening this, as we might be able to use cookiecutter during the building of the system generation to easily solve some current introspective problems, such as knowing available users to assign user properties to each, without causing infinite recursion. Not to mention, cookiecutter or similar tools could help with #179 in general. |
I'd have thought ideally nix templates would offer us something, here. Instead of a template, we might use annotations, so that an unprocessed template is still a valid project. {
name = "hey"; # setter: name
} And I think nix even provides something to manipulate values on the fly over the cli. |
$ nix repl
Welcome to Nix version 3.0pre20200829_f156513. Type :? for help.
nix-repl> pkgs = import <nixpkgs> {}
nix-repl> builtins.unsafeGetAttrPos "description" pkgs.hello.meta
{ column = 5; file = "/home/zimbatm/go/src/github.com/NixOS/nixpkgs/pkgs/applications/misc/hello/default.nix"; line = 15; }
nix-repl> builtins.unsafeGetAttrPos "broken" pkgs.hello.meta
null
Quote from zimbatm from a private conversation. |
With suites, we have a cheap way of introspecting the global composing components for a host by name and coukd write those into a host template via That could go into |
This template has evolved quite a bit, and also |
Is your feature request related to a problem? Please describe.
As of now we endup with lot of files not necessarily used.
Describe the solution you'd like
Using such tool we can set the
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: