summary refs log tree commit diff
path: root/nixos/modules/installer
Commit message (Collapse)AuthorAge
* nix-fallback-paths.nix: Update to 2.7.0Nick Cao2022-03-08
|
* Merge pull request #156005 from zhaofengli/pi02Samuel Dionne-Riel2022-02-24
|\ | | | | Update Raspberry Pi packages
| * sd-image-aarch64: Enable arm_boost for Pi 4Zhaofeng Li2022-02-12
| | | | | | | | | | | | | | | | | | | | This is effective on the Pi 400 and on newer board revisions of the Pi 4B. From the official documentation: > New Raspberry Pi OS images from Bullseye onwards come with > this setting by default. <https://www.raspberrypi.com/documentation/computers/config_txt.html>
| * sd-image-aarch64.nix: Add config for Pi Zero 2 WZhaofeng Li2022-02-12
| |
* | Merge pull request #160891 from jtojnar/gnome-iso-shortcutsJan Tojnar2022-02-21
|\ \ | | | | | | installation-cd-graphical-gnome: add useful shortcuts to the dash
| * | installation-cd-graphical-gnome: add useful shortcuts to the dashJan Tojnar2022-02-19
| |/ | | | | | | | | | | | | | | | | The live image is primarily used for installation so we should make link to manual as well as other useful tools front and center, instead of having them buried in the app drawer. The default GNOME apps can still be found there when the ISO is used for demonstration purposes.
* / nixos-build-vms(8): `$out/bin/nixos-run-vms` should non-interactively start VMsMaximilian Bosch2022-02-19
|/ | | | | | | | | | | | | | Not entirely sure when it got broken this time, but when creating a VM network with `nixos-build-vms(8)`, there are should be the following scripts: * `$out/bin/nixos-test-driver` which drops into an interactive shell to interactively perform test steps. * `$out/bin/nixos-run-vms` which non-interactively starts the VMs from the network so that one can manually play around in the VM. The latter also starts an interactive shell for a while now which means that it does the exact same thing as `nixos-test-driver` which is not its purpose.
* nixos/nixos-generate-config: move dhcpConfig from configuration.nix to ↵Artturin2022-02-09
| | | | hardware-configuration.nix
* nixos/nixos-generate-config: fix proram path replacementsArtturin2022-02-09
| | | | | btrfs-progs was made optional in 2019 c01ea27ce356e1433da01a7b46ba40c880f2f2ac because it didn't cross-compile. it now does
* nixos/tools: add more keymap options to configuration templateArtturin2022-02-09
|
* nixos/tools: add networkmanager to configuration templateArtturin2022-02-09
|
* nix-fallback-paths: update to 2.6.0Bernardo Meurer2022-01-31
|
* nixos/nix-daemon: use structural settingspolykernel2022-01-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `nix.*` options, apart from options for setting up the daemon itself, currently provide a lot of setting mappings for the Nix daemon configuration. The scope of the mapping yields convience, but the line where an option is considered essential is blurry. For instance, the `extra-sandbox-paths` mapping is provided without its primary consumer, and the corresponding `sandbox-paths` option is also not mapped. The current system increases the maintenance burden as maintainers have to closely follow upstream changes. In this case, there are two state versions of Nix which have to be maintained collectively, with different options avaliable. This commit aims to following the standard outlined in RFC 42[1] to implement a structural setting pattern. The Nix configuration is encoded at its core as key-value pairs which maps nicely to attribute sets, making it feasible to express in the Nix language itself. Some existing options are kept such as `buildMachines` and `registry` which present a simplified interface to managing the respective settings. The interface is exposed as `nix.settings`. Legacy configurations are mapped to their corresponding options under `nix.settings` for backwards compatibility. Various options settings in other nixos modules and relevant tests have been updated to use structural setting for consistency. The generation and validation of the configration file has been modified to use `writeTextFile` instead of `runCommand` for clarity. Note that validation is now mandatory as strict checking of options has been pushed down to the derivation level due to freeformType consuming unmatched options. Furthermore, validation can not occur when cross-compiling due to current limitations. A new option `publicHostKey` was added to the `buildMachines` submodule corresponding to the base64 encoded public host key settings exposed in the builder syntax. The build machine generation was subsequently rewritten to use `concatStringsSep` for better performance by grouping concatenations. [1] - https://github.com/NixOS/rfcs/blob/master/rfcs/0042-config-option.md
* Merge pull request #153409 from tpwrules/fix-nonx86-iso-reproducibilitySamuel Dionne-Riel2022-01-23
|\ | | | | installer/cd-dvd/iso-image: avoid leaking build timestamps on non-x86
| * installer/cd-dvd/iso-image: avoid leaking build timestamps on non-x86Thomas Watson2022-01-05
| |
* | Merge pull request #154372 from zhaofengli/sd-image-rv64-installer0x4A6F2022-01-24
|\ \ | | | | | | sd-image-riscv64: Add an -installer variant like others
| * | sd-image-riscv64: Add an -installer variant like othersZhaofeng Li2022-01-10
| | |
* | | Merge pull request #150360 from Enzime/fix-netboot-cmdlineJörg Thalheim2022-01-19
|\ \ \ | | | | | | | | netboot: Support cmdline variable from netboot.xyz
| * | | netboot: Support cmdline variable from netboot.xyzMichael Hoang2021-12-23
| | |/ | |/|
* | | Merge pull request #150408 from Enzime/systemd-boot-extra-entriespennae2022-01-13
|\ \ \ | |_|/ |/| | nixos/systemd-boot: Add `extraEntries` and `extraFiles` options
| * | nixos/nixos-enter: Don't passthru `TMPDIR`Michael Hoang2021-12-31
| |/ | | | | | | | | | | | | | | | | `mktemp` tries to use the `TMPDIR` from `nixos-install` outside of the `chroot` instead of `/tmp` inside the `chroot` and fails. For some reason the `TMPDIR` is being passed through the `chroot` call. I haven't tested if other environment variables are being passed through that shouldn't be.
* | Merge pull request #125451 from zhaofengli/qemu-riscv64-sd-imageMaciej Krüger2022-01-07
|\ \
| * | sd-image-x86_64: initZhaofeng Li2022-01-06
| | |
| * | sd-image: Propagate imageName to derivationZhaofeng Li2022-01-06
| | |
| * | sd-image-riscv64-qemu: initZhaofeng Li2022-01-06
| |/
* / nixos-install: copy channels before system evalpennae2022-01-05
|/ | | | | | | | | since fc614c37c653637e5475a0b0a987489b4d1f351d nixos needs access to its own path (<nixpkgs/nixos>) to evaluate a system with documentation. since documentation is enabled by default almost all systems need such access, including the installer tests. nixos-install however does not ensure that a channel exists in the target store before evaluating the system in that store, which can lead to `path is not valid` errors.
* nixos/installer: Quote variable referencesVictor Engmark2021-11-26
| | | | See <https://github.com/koalaman/shellcheck/wiki/SC2086>.
* nixos/installer: Use `-n` instead of `! -z`Victor Engmark2021-11-26
| | | | See <https://github.com/koalaman/shellcheck/wiki/SC2236>.
* nixos/installer: Mark scripts as Bash for ShellCheckVictor Engmark2021-11-26
| | | | See <https://github.com/koalaman/shellcheck/wiki/SC2239>.
* nixos-install: support --no-root-passwordGraham Christensen2021-11-22
|
* treewide: refactor isi686 && isx86_64 -> isx86Ryan Burns2021-11-20
|
* nixos-generate-config: automatically enable microcode updatesArtturin2021-11-15
|
* nix-fallback-paths.nix: Update to 2.4Eelco Dolstra2021-11-09
|
* nixos/nixos-enter: bind mount /etc/resolv.conf to chrootArtturin2021-10-30
|
* nixos/nixos-enter: Add IN_NIXOS_ENTER variableJanne Heß2021-10-13
|
* nix-fallback-paths.nix: Update to 2.3.16Eelco Dolstra2021-10-07
|
* Merge pull request #126713 from ↵Jacek Galowicz2021-10-07
|\ | | | | | | | | blaggacao/nixos-test-ref/05-class-ify-test-driver nixos test ref/05 class ify test driver
| * nixos/build-vms: fix evalMaximilian Bosch2021-10-05
| |
| * nixos/test/test-driver: Class-ify the test driverDavid Arnold2021-10-05
| | | | | | | | | | | | | | This commit encapsulates the involved domain into classes and defines explicit and typed arguments where untyped dicts where used. It preserves backwards compatibility through legacy wrappers.
* | nixos/doc: clean up defaults and examplesNaïm Favier2021-10-04
| |
* | Merge master into staging-nextgithub-actions[bot]2021-09-14
|\ \
| * \ Merge pull request #104828 from matthewbauer/add-disableInstallerTools-optionArtturi2021-09-14
| |\ \ | | |/ | |/|
| | * installers/tools: add system.disableInstallerTools optionMatthew Bauer2020-11-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge staging-next into staginggithub-actions[bot]2021-08-18
|\| |
| * | lib/modules: add mkImageMediaOverrideDavid Arnold2021-08-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | so the underlaying use case of the preceding commit is so generic, that we gain a lot in reasoning to give it an appropriate name. As the comment states: image media needs to override host config short of mkForce
| * | nixos/boot-media: soft-force entire fs layoutDavid Arnold2021-08-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/NixOS/nixpkgs/pull/131760 was made to avo a speicific configuration conflict that errored out for multiple definitions of "/" when the installer where overlayed on any existing host configuration. --- Problem 1: It turns out that in also other mountpoints can coflict. Solution 1: use `mkOverride 60` for all mountpoints (even for the ones unlikely causing confilct for consistency sake) --- Problem 2: It turns out that on an installation media for a fresh machine (before formatting), we usually don't have any devices yet formatted. However defining for example `fileSystems.<nme>.device = "/dev/disk/by-label/...", in newer versions of nixos, seems to make the system startup fail. Similarily waiting for a non-existent swap device does not make the startup fail, but has a 1:30 min timeout. Solution 2: For an installation medium, soft-override ("unless users know what they are doing") the entire `fileSystems` and `swapDevices` definitions.
* | | top-level: move linux kernels, packages and related functions to ↵Dominik Xaver Hörl2021-08-12
|/ / | | | | | | linux-kernels.nix
* | nix-fallback-paths.nix: Update to 2.3.15Eelco Dolstra2021-07-28
| |
* | nixos/installer: force root fs typeDavid Arnold2021-07-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | installer media can be used on top of existing host configs. In such scenarions, root fs types will already be defined. Before this change, this will inevitably lead to the following error: ```console error: The option `fileSystems./.fsType' has conflicting definition values: - In `/nix/store/2nl5cl4mf6vnldpbxhrbzfh0n8rsv9fm-source/DevOS/os/hardware/common.nix': "ext4" - In `/nix/store/jbch90yqx6gg1h3fq30jjj2b6h6jfjgs-source/nixos/modules/installer/cd-dvd/iso-image.nix': "tmpfs" ``` With this patch, the installers will override those values according to their own local requirement. Use `mkOverride 60` so that conscientious overriding specially targeted at the installer, e.g. with `mkForce` is still straight forward.
* | nixStable: 2.3.12 -> 2.3.14Maximilian Bosch2021-07-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes: https://github.com/NixOS/nix/compare/2.3.12...2.3.14 Since this is a bugfix release that wasn't pushed to `nixpkgs`, I decided to take care of it. As it's usually done in `upload-release.pl`[1], I updated the fallback-paths accordingly and used eval `1687468`[2] for this with Nix 2.3.14. Also added a fallback-path for `aarch64-darwin` as Nix 2.3.14 seems to support this now[3]. [1] https://github.com/NixOS/nix/blob/2.3-maintenance/maintainers/upload-release.pl [2] https://hydra.nixos.org/eval/1687468 [3] https://github.com/NixOS/nix/commit/14262b86cc5825deae095c14553d623af498124c