aboutsummaryrefslogtreecommitdiff
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-06-04 20:02:50 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-06-04 20:22:25 +0200
commit810b2c6a48b5ecd468bd4f65963ce5a7aa96832e (patch)
tree6d0cf088c2b5ef713ef00d81da9413eb23916569 /bootstrap.sh
parentdc305500c38c5e2227bea696949970c562046a8f (diff)
nix flake init: Add a '--template' flag
The initial contents of the flake is specified by the 'templates.<name>' or 'defaultTemplate' output of another flake. E.g. outputs = { self }: { templates = { nixos-container = { path = ./nixos-container; description = "An example of a NixOS container"; }; }; }; allows $ nix flake init -t templates#nixos-container Also add a command 'nix flake new', which is identical to 'nix flake init' except that it initializes a specified directory rather than the current directory.
Diffstat (limited to 'bootstrap.sh')
0 files changed, 0 insertions, 0 deletions