nixpkgs/nixos/modules/installer/tools
Eelco Dolstra ca3725bfc9 nixos-generate-config: Add --root option
If this option is given, nixos-generate-config will write the
configuration to /etc/nixos under the given root, and only emit
fileSystems attributes for filesystems under the given root directory.

The typically use case is at installation time, where you can say:

  $ nixos-generate-config --root /mnt

which will create /mnt/etc/nixos/{configuration.nix,hardware-configuration.nix}.

Also add a --force flag to force overwriting configuration.nix.
2013-10-13 17:35:56 +02:00
..
nixos-build-vms Map --help flag to "man <command>" for more NixOS commands 2013-10-13 17:35:55 +02:00
get-version-suffix Unify the Nixpkgs and NixOS version numbers 2013-10-10 13:28:22 +02:00
nixos-checkout.nix nixos-checkout: Only fetch the Nixpkgs repo 2013-10-10 13:28:22 +02:00
nixos-generate-config.pl nixos-generate-config: Add --root option 2013-10-13 17:35:56 +02:00
nixos-install.sh Map --help flag to "man <command>" for more NixOS commands 2013-10-13 17:35:55 +02:00
nixos-option.sh Merge "nixos-option --install" into nixos-generate-config 2013-10-13 17:35:55 +02:00
nixos-rebuild.sh nixos-rebuild: Let --help invoke "man nixos-rebuild" 2013-10-13 17:35:54 +02:00
nixos-version.sh Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
tools.nix nixos-generate-config: Write to /etc/nixos/hardware.nix rather than stdout 2013-10-13 17:35:55 +02:00