nixpkgs/nixos/modules
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
..
config Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
hardware Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
installer nixos-generate-config: Add --root option 2013-10-13 17:35:56 +02:00
misc Unify the Nixpkgs and NixOS version numbers 2013-10-10 13:28:22 +02:00
profiles Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
programs Drop <services> from $NIX_PATH 2013-10-13 17:35:55 +02:00
security Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
services Merge pull request #1063 from offlinehacker/nixos/graphite/listen_defaults_fix 2013-10-12 12:23:34 -07:00
system Remove old efi boot stub bootloader 2013-10-10 10:54:35 -04:00
tasks Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
testing Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
virtualisation Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
module-list.nix Remove old efi boot stub bootloader 2013-10-10 10:54:35 -04:00
rename.nix Remove old efi boot stub bootloader 2013-10-10 10:54:35 -04:00