mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 09:36:20 +09:00
Revert "NixOS apply
script"
Reverts #344407 This has broken nixos-rebuild switch so that it no longer updates the profile, which has bad consequences including not updating the systemd-boot menu with new generations.
This commit is contained in:
parent
e8ecffc976
commit
37ee6ba681
16 changed files with 31 additions and 502 deletions
|
@ -16,6 +16,6 @@ profile:
|
|||
The most notable deviation of this profile from a standard NixOS configuration
|
||||
is that after building it, you cannot switch *to* the configuration anymore.
|
||||
The profile sets `config.system.switch.enable = false;`, which excludes
|
||||
`apply` and `switch-to-configuration`, the central scripts called by `nixos-rebuild`, from
|
||||
`switch-to-configuration`, the central script called by `nixos-rebuild`, from
|
||||
your system. Removing this script makes the image lighter and slightly more
|
||||
secure.
|
||||
|
|
|
@ -5,8 +5,8 @@ This chapter explains some of the internals of this command to make it simpler
|
|||
for new module developers to configure their units correctly and to make it
|
||||
easier to understand what is happening and why for curious administrators.
|
||||
|
||||
`nixos-rebuild`, like many deployment solutions, calls `apply` (or for NixOS older than 24.11, `switch-to-configuration`)
|
||||
which resides in a NixOS system at `$out/bin/apply`. The
|
||||
`nixos-rebuild`, like many deployment solutions, calls `switch-to-configuration`
|
||||
which resides in a NixOS system at `$out/bin/switch-to-configuration`. The
|
||||
script is called with the action that is to be performed like `switch`, `test`,
|
||||
`boot`. There is also the `dry-activate` action which does not really perform
|
||||
the actions but rather prints what it would do if you called it with `test`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue