+11
nixos/doc/manual/installation/installing.chapter.md
+11
nixos/doc/manual/installation/installing.chapter.md
······
+2
nixos/doc/manual/release-notes/rl-2505.section.md
+2
nixos/doc/manual/release-notes/rl-2505.section.md
···- `nixos-rebuild-ng`, a full rewrite of `nixos-rebuild` in Python, is available for testing. You can enable it by setting [system.rebuild.enableNg](options.html#opt-system.rebuild.enableNg) in your configuration (this will replace the old `nixos-rebuild`), or by adding `nixos-rebuild-ng` to your `environment.systemPackages` (in this case, it will live side-by-side with `nixos-rebuild` as `nixos-rebuild-ng`). It is expected that the next major version of NixOS (25.11) will enable `system.rebuild.enableNg` by default.+- The `nixos-generate-config` command now supports a optional `--flake` option, which will generate a flake.nix file alongside the `configuration.nix` and `hardware-configuration.nix`, providing an easy instroduction into flake-based system configurations.It allows users to build platform-specific (disk) images from their NixOS configurations. `nixos-rebuild build-image` works similar to the popular [nix-community/nixos-generators](https://github.com/nix-community/nixos-generators) project. See new [section on image building in the nixpkgs manual](https://nixos.org/manual/nixpkgs/unstable/#sec-image-nixos-rebuild-build-image). It is also available for `nixos-rebuild-ng`.
+9
-1
nixos/modules/installer/tools/manpages/nixos-generate-config.8
+9
-1
nixos/modules/installer/tools/manpages/nixos-generate-config.8
······
+17
nixos/modules/installer/tools/nixos-generate-config.pl
+17
nixos/modules/installer/tools/nixos-generate-config.pl
·········
+39
-3
nixos/modules/installer/tools/tools.nix
+39
-3
nixos/modules/installer/tools/tools.nix
·········+# If you prefer a stable release instead, you can this to the latest number shown here: https://nixos.org/download+# Use `nix flake update` to update the flake to the latest revision of the chosen release channel.······
+6
nixos/tests/nixos-generate-config.nix
+6
nixos/tests/nixos-generate-config.nix
···+machine.succeed("nix-instantiate --parse /etc/nixos/configuration.nix /etc/nixos/hardware-configuration.nix")···"grep 'services\\.xserver\\.desktopManager\\.gnome\\.enable = true;' /etc/nixos/configuration.nix"+machine.succeed("nix-instantiate --parse /etc/nixos/flake.nix /etc/nixos/configuration.nix /etc/nixos/hardware-configuration.nix")