Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nix
base: dc305500c38c
Choose a base ref
...
head repository: NixOS/nix
compare: ab54031e044a
Choose a head ref
  • 2 commits
  • 9 files changed
  • 1 contributor

Commits on Jun 4, 2020

  1. 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.
    edolstra committed Jun 4, 2020
    Copy the full SHA
    810b2c6 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    ab54031 View commit details
    Browse the repository at this point in the history