+4
-4
nixos/doc/manual/administration/rollback.section.md
+4
-4
nixos/doc/manual/administration/rollback.section.md
······
+1
-1
nixos/doc/manual/development/non-switchable-systems.section.md
+1
-1
nixos/doc/manual/development/non-switchable-systems.section.md
···
+2
-2
nixos/doc/manual/development/what-happens-during-a-system-switch.chapter.md
+2
-2
nixos/doc/manual/development/what-happens-during-a-system-switch.chapter.md
···-`nixos-rebuild`, like many deployment solutions, calls `apply` (or for NixOS older than 24.11, `switch-to-configuration`)
+1
-1
nixos/doc/manual/installation/installing-from-other-distro.section.md
+1
-1
nixos/doc/manual/installation/installing-from-other-distro.section.md
···
-10
nixos/doc/manual/release-notes/rl-2411.section.md
-10
nixos/doc/manual/release-notes/rl-2411.section.md
···The original Perl script is deprecated and is planned for removal in the 25.05 release. It will remain accessible until then by setting `system.switch.enableNg` to `false`.-If you call `switch-to-configuration` directly, you are recommended to use `apply` instead, and remove your call to `nix-env --profile /nix/var/nix/profiles/system --set $toplevel` or similar.-It will run the switch operation as a systemd unit if available, as `nixos-rebuild switch` would.-- The `apply` script reduces the roundtrips required when performing a remote deployment with `nixos-rebuild switch --target-host HOST`.-- Alternative NixOS deployment methods have feature parity with `nixos-rebuild`, and NixOS can evolve all of its switching logic in one place.- Support for mounting filesystems from block devices protected with [dm-verity](https://docs.kernel.org/admin-guide/device-mapper/verity.html)
+1
-1
nixos/lib/testing/nixos-test-base.nix
+1
-1
nixos/lib/testing/nixos-test-base.nix
···-# Don't pull in apply and switch-to-configuration by default, except when specialisations or early boot shenanigans are involved.+# Don't pull in switch-to-configuration by default, except when specialisations or early boot shenanigans are involved.# This is mostly a Hydra optimization, so we don't rebuild all the tests every time switch-to-configuration-ng changes.
-163
nixos/modules/system/activation/apply/apply.sh
-163
nixos/modules/system/activation/apply/apply.sh
···-"-E" "LOCALE_ARCHIVE" # Will be set to new value early in switch-to-configuration script, but interpreter starts out with old value
-51
nixos/modules/system/activation/apply/checks.nix
-51
nixos/modules/system/activation/apply/checks.nix
···
-176
nixos/modules/system/activation/apply/test.sh
-176
nixos/modules/system/activation/apply/test.sh
···
+1
-1
nixos/modules/system/activation/specialisation.nix
+1
-1
nixos/modules/system/activation/specialisation.nix
···
+5
-2
nixos/modules/system/activation/switch-to-configuration.pl
+5
-2
nixos/modules/system/activation/switch-to-configuration.pl
···if (!defined($action) || ($action ne "switch" && $action ne "boot" && $action ne "test" && $action ne "dry-activate")) {
+2
-25
nixos/modules/system/activation/switchable-system.nix
+2
-25
nixos/modules/system/activation/switchable-system.nix
·········
+2
-2
nixos/modules/system/activation/top-level.nix
+2
-2
nixos/modules/system/activation/top-level.nix
···
-11
nixos/tests/all-tests.nix
-11
nixos/tests/all-tests.nix
······nixos-rebuild-install-bootloader = handleTestOn ["x86_64-linux"] ./nixos-rebuild-install-bootloader.nix {};nixos-rebuild-specialisations = runTestOn ["x86_64-linux"] ./nixos-rebuild-specialisations.nix;
+4
-1
pkgs/by-name/sw/switch-to-configuration-ng/src/src/main.rs
+4
-1
pkgs/by-name/sw/switch-to-configuration-ng/src/src/main.rs
···
+8
-51
pkgs/os-specific/linux/nixos-rebuild/nixos-rebuild.sh
+8
-51
pkgs/os-specific/linux/nixos-rebuild/nixos-rebuild.sh
·········pathToConfig="$(nixFlakeBuild "$flake#$flakeAttr.config.system.build.toplevel" "${extraBuildFlags[@]}" "${lockFlags[@]}")"elif [[ "$action" = test || "$action" = build || "$action" = dry-build || "$action" = dry-activate ]]; thenpathToConfig="$(nixBuild $buildFile -A "${attr:+$attr.}config.system.build.toplevel" "${extraBuildFlags[@]}")"···-if [[ "$action" = switch || "$action" = boot || "$action" = test || "$action" = dry-activate ]]; then-hasApplyScriptOut="$(targetHostCmd sh -c "if test -e $pathToConfig/bin/apply; then echo __has-apply-script__; elif test -e $pathToConfig/bin; then echo __has-no-apply-script__; else echo $pathToConfig is gone; fi-&& [[ "$action" = switch || "$action" = boot || "$action" = test || "$action" = dry-activate ]]; then-elif [[ "$action" = switch || "$action" = boot || "$action" = test || "$action" = dry-activate ]]; then+if [[ "$action" = switch || "$action" = boot || "$action" = test || "$action" = dry-activate ]]; then