nixpkgs/nixos/modules/installer
Matthew Bauer 62e723f5aa installers/tools: add system.disableInstallerTools option
This option can be set to disable installer tools like nixos-rebuild,
nixos-install, and nixos-generate-config (as well as more). This is
nice when a system is not expected to be rebuild or reconfigure itself
such as in a stateless PXE setup, as well as other embedded scenarios.
Note, that the system can still be updated, but it must either get
nixos-rebuild from another source, or, for embedded systems, be
upgraded by another machine like:

  nix copy "$system" --to "ssh://root@<host>" && ssh "root@<host>"
  "nix-env -p /nix/var/nix/profiles/system --set $system && $system/bin/switch-to-configuration switch".

Along with other options, this allows removing Perl from a closure.
For example:

{
  boot.enableContainers = false;
  environment.defaultPackages = [];
  system.disableInstallerTools = true;
}

should not include Perl.
2020-11-24 18:22:11 -06:00
..
cd-dvd installation-cd-graphical-gnome: add firefox to favorite-apps 2020-10-24 11:14:44 -04:00
netboot Revert "Revert "Merge master into staging-next"" 2020-02-05 19:41:25 +01:00
scan [bot] nixos/*: remove unused arguments in lambdas 2018-07-20 20:56:59 +00:00
tools installers/tools: add system.disableInstallerTools option 2020-11-24 18:22:11 -06:00
virtualbox-demo.nix ova: remove stateVersion 2019-03-09 14:25:05 -05:00