1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-14 08:34:50 +00:00
nixpkgs/nixos/modules/installer/tools
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
..
nixos-build-vms nixos-build-vms: use the driverInteractive attribute instead 2020-10-25 20:14:53 +01:00
nixos-option treewide: completely remove types.loaOf 2020-09-02 00:42:50 +02:00
get-version-suffix
nix-fallback-paths.nix nix: 2.3.8 -> 2.3.9 2020-11-20 13:03:04 +01:00
nixos-enter.sh nixos/nixos-*: use runtimeShell 2020-08-16 13:08:33 +00:00
nixos-generate-config.pl Support virtio_scsi devices on nixos-generate-config 2020-11-04 10:00:28 +01:00
nixos-install.sh nixos-install: pass through keep-going flag 2020-10-31 17:13:45 +01:00
nixos-rebuild.sh nixos-rebuild: add impure 2020-09-28 17:24:37 -04:00
nixos-version.sh nixos/nixos-*: use runtimeShell 2020-08-16 13:08:33 +00:00
tools.nix installers/tools: add system.disableInstallerTools option 2020-11-24 18:22:11 -06:00