summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/rangehttpserver
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2020-11-24 18:10:41 -0600
committerMatthew Bauer <mjbauer95@gmail.com>2020-11-24 18:22:11 -0600
commit62e723f5aa0c1f2b37f62d685330213846c284c7 (patch)
tree46b496be387827cead871ce6ba38356080ca5c28 /pkgs/development/python-modules/rangehttpserver
parent2247d824fe07f16325596acc7faa286502faffd1 (diff)
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.
Diffstat (limited to 'pkgs/development/python-modules/rangehttpserver')
0 files changed, 0 insertions, 0 deletions