about summary refs log tree commit diff
path: root/nixos/modules/installer
AgeCommit message (Collapse)AuthorFilesLines
2024-04-11nixos-generate-config: preserve vfat filesystem mount permissionsBjørn Forsman1-0/+11
The default is to mount these world-readable, but that's a security risk for the EFI System Partition. Ref https://github.com/NixOS/nixpkgs/issues/279362. (cherry picked from commit 8ee9b79cc41e9013f5bb58081eccdec236530611)
2024-02-09nixos/lib/make-squashfs.nix: allow disabling compressionCole Mickens1-1/+2
(cherry picked from commit 5a718794d0f559963fd5a21e18896a66c5232645)
2023-11-28nixos/system.disableInstallerTools: Do define options without effectRobert Hensing1-3/+6
These won't cause anything to appear in toplevel. (cherry picked from commit 64b587e3e22dc078cd4c73d2d8f5331d8321ae65)
2023-11-11Merge master into staging-nextgithub-actions[bot]1-1/+1
2023-11-11treewide: fix redirected and broken URLsAnthony Roussel1-1/+1
Using the script in maintainers/scripts/update-redirected-urls.sh
2023-11-10Merge remote-tracking branch 'origin/master' into HEADAlyssa Ross1-1/+0
Conflicts: pkgs/development/libraries/SDL2/default.nix
2023-11-09Merge master into staging-nextgithub-actions[bot]1-5/+5
2023-11-09nixos/installer: remove nixos-option compat shimK9001-1/+0
It's been two years.
2023-11-08nix: 2.17.1 -> 2.18.1Robert Hensing1-5/+5
2023-11-02Merge master into staging-nextgithub-actions[bot]1-27/+27
2023-11-02installer/cd-dvd/channel: allow to disable bundled channelJörg Thalheim1-24/+26
When building kexec-based installer every mb saved will reduce the RAM usage and allow to install NixOS on smaller machines. It also means that less data has to be downloaded from the network. When using flakes or niv we no longer rely on nix channels beeing present and when using something like nixos-anywhere, we no longer need to evaluate anything in the installer at all.
2023-11-02installer/cd-dvd/channel: stop using libJörg Thalheim1-5/+3
the lack of with allows lsp's to spot errors better
2023-10-29Merge master into staging-nextgithub-actions[bot]2-7/+17
2023-10-29nixos-generate-config: rewrite stateVersion comment againK9001-6/+16
Hopefully this version is clearer. Also tried to make it less technical.
2023-10-27nixos/virtualbox-demo: use latest stateVersionK9001-1/+1
Just like we do for the other live images
2023-10-23Merge staging-next into staginggithub-actions[bot]1-16/+0
2023-10-21installer/nixos-generate-config: don't set powersave cpuFreqGovernorAtemu1-16/+0
This script would always "detect" the "powersave" governor as it is available on practically all CPUs while the "ondemand" governor is only available on some old CPUs. IME the "powersave" governor barely provides any power savings but introduces massive performance deficits, including noticable stuttering. This is not the default experience we should offer users, even for those who use laptops. Use the kernel default (currently "performance", CPU makers may change it in future) instead.
2023-10-12Merge staging-next into staginggithub-actions[bot]1-3/+3
2023-10-11nixos/x11: refactor XKB options into a single attrsetVictor Engmark1-3/+3
[Motivation](https://github.com/NixOS/nixpkgs/issues/257817#issuecomment-1741705042): - Having all the XKB options in the same attribute set clarifies their relation better than using a common option name prefix ("xkb"). - `services.xserver.layout` is an XKB option, but this is not obvious from its name. Putting it with the other XKB options clarifies this. Co-authored-by: Michele Guerini Rocco <rnhmjoj@users.noreply.github.com>
2023-10-03bcachefs: 2023-06-28 -> 2023-09-29Daniel Hill1-0/+14
Includes prep work for mainline bcachefs release.
2023-09-18nixos/installer: mention search.nixos.orgAtemu1-2/+2
It's immensely helpful and more user-friendly than the humongous configuration.nix man page.
2023-09-06nixos/iso-image: Remove leftover false dichotomy between console/serialSamuel Dionne-Riel1-28/+10
Relying on the built-in UEFI console here was already necessary, so we are losing nothing by removing the needless `serial` call, which hung some systems. This also makes the implementation much easier to understand. Also, no ugly-font menu anymore!
2023-09-06nixos/iso-image: graphicalGrub -> forceTextModeSamuel Dionne-Riel1-5/+9
This helps keep logic simpler, as what we do is forcing text mode, which means the non-default case is `truthy`, making things easier to digest in the config file. Also renaming this option is considered "internal", since it lives only within the `iso-image` namespace, and also not a breaking change since it was not part of a stable release.
2023-09-06nixos/iso-image: Tear down GOP and rely on console for Linux bootSamuel Dionne-Riel1-0/+3
This solves an issue where *some systems* (tested on Steam Deck) the EFI GOP may be broken during stage-1.
2023-09-06nixos/iso-image: Drop all unneeded FS modulesSamuel Dionne-Riel1-6/+0
It's not like the iso-image will be anything else than isohybrid FAT+iso9660...
2023-09-06nixos/iso-image: Re-enable graphics modeSamuel Dionne-Riel1-1/+1
Which ***anyway*** was not disabled correctly. Following changes will actually disable it. What this did was disable the "themed" menu driver, but still continued relying on the gfxterm infra, which in itself is why things were ugly and weird.
2023-09-06nixos/iso-image: Check GRUB config on buildSamuel Dionne-Riel1-0/+2
2023-09-06nixos/iso-image: Add common display resolutionsSamuel Dionne-Riel1-0/+4
Hey, look at that, grub is the correct way around on a Steam Deck!
2023-09-06nixos/iso-image: Use intrinsic UEFI console for serial output in GRUBSamuel Dionne-Riel1-6/+7
The `serial` console hangs on some systems. Unknown why. Anyway, the way this worked right now relied on it telling the user on the UEFI console how to enable it. So if I understand it correctly, it will not cause any regression there.
2023-09-06nixos/iso-image: Make modules list easier to manageSamuel Dionne-Riel1-13/+60
With a bash array. This change is morally a no-op.
2023-09-06nixos/iso-image: disable graphical GRUB on GNOME ISOs tooK9001-1/+0
It's broken for a lot of people.
2023-08-16Merge pull request #248701 from doronbehar/nixos/manpagesDoron Behar6-0/+630
nixos/install-tools: Add manpages to packages instead of seperating them
2023-08-13Merge pull request #247475 from qowoz/nix217Bernardo Meurer1-5/+5
2023-08-12nixos/doc: Improve documentation of documentationDoron Behar1-57/+0
- Move contents of README.md from nixos/modules/installer/tools/manpages/ to nixos/doc/manual/contributing-to-this-manual.chapter.md. - Don't mention DocBook as its obsolete and too specific. - Rename derivation attribute name of configuration.nix(5) manual page, both on the `contributing-to-this-manual.chapter.md`, and in other places.
2023-08-12iso_gnome: Fix evaluationJan Tojnar1-6/+0
`qt.enable` option requires `qt.style` to be set. Previously, this was set in GNOME module but it has been removed in 622745942bc7b7cc056bfbb0bc6004dd823fa4f5
2023-08-12nixos/install-tools: Add manpages to packages instead of seperating themDoron Behar7-0/+687
Since each such `nixos-*` tool has it's own derivation, exposed in pkgs, There is no point in separating the manuals from the packages. If someone wishes to have the tools without the manuals, they can use meta.outputsToInstall to disable the installation of the manpages of these packages. This Fixes #244450.
2023-08-06nixos/nix-fallback-paths: 2.15.1 -> 2.17.0zowoq1-5/+5
https://releases.nixos.org/nix/nix-2.17.0/fallback-paths.nix
2023-08-02Merge pull request #246746 from mode89/fix/nixos-install-with-non-empty-mntPol Dellaiera1-1/+1
nixos-install: fix removal of non-empty `/mnt`
2023-08-02nixos-install: fix removal of non-empty `/mnt`Andrey Krainyak1-1/+1
After building the target system, `nixos-install` tries to remove `/mnt` on the target filesystem. And the script may fail without any explanation, if `/mnt` isn't empty. This commit makes the installation process carry on even if there are files under `/mnt`. See https://github.com/NixOS/nixpkgs/issues/244643.
2023-07-21nixos-generate-config: add 'lib' arg to configuration.nixBjørn Forsman1-1/+1
Although 'lib' isn't needed by the default configuration, new NixOS uses can get confused when being recommended configuration.nix snippets like systemd.services.NetworkManager-wait-online.enable = lib.mkForce false; and have `sudo nixos-rebuild switch` fail with error: undefined variable 'lib'
2023-07-13Merge pull request #183314 from DeterminateSystems/optional-swraidWill Fancher1-2/+9
Make swraid optional
2023-07-12treewide: use lib.optional instead of 'then []'Felix Buehler1-3/+1
2023-07-12Merge pull request #237442 from SuperSandro2000/nixos-optionSandro1-5/+3
nixos-option: update to nix 2.15
2023-07-11nixos/tools: remove nixos-option conditionSandro Jäckel1-5/+3
2023-07-10boot.initrd.services.swraid -> boot.swraidLinus Heckemann1-1/+1
Since the option affects both stage-1 and stage-2, it does not make sense to keep it within the boot.initrd namespace.
2023-07-10nixos/swraid: make entire module optionalLinus Heckemann1-2/+9
swraid support will now only be enabled by default if stateVersion is older than 23.11. nixos-generate-config will now generate explicit config for enabling support if needed.
2023-07-05nixos/iso-image: fix syntaxK9001-1/+1
2023-06-29installation-cd: enable graphicalGrublassulus1-0/+1
2023-06-29nixos/iso-image: make graphical grub configurablelassulus1-1/+11
2023-06-11nixos-generate-config: Fix generated hostPlatform.systemRobert Hensing2-2/+2
While the intent of the code was correct, the system string can not be used in the substituteAll function. See https://github.com/NixOS/nixpkgs/issues/237216