nixpkgs/nixos
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
..
doc Merge "nixos-option --install" into nixos-generate-config 2013-10-13 17:35:55 +02:00
gui Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
lib Terrible backward compatibility hack 2013-10-11 13:36:09 +02:00
maintainers Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
modules nixos-generate-config: Add --root option 2013-10-13 17:35:56 +02:00
tests Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
COPYING Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
default.nix Update the release expressions and the channel generators 2013-10-10 13:28:22 +02:00
README Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
release-combined.nix Update the release expressions and the channel generators 2013-10-10 13:28:22 +02:00
release.nix Tweak the version string 2013-10-10 13:28:22 +02:00

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
http://nixos.org/nixos and in the manual in doc/manual.