summary refs log tree commit diff
path: root/nixos/modules/installer
Commit message (Collapse)AuthorAge
* nixos/nixos-install: Unset systemJanne Heß2018-10-14
| | | | | | | | The system variable is used from the (possibly polluted) shell environment. This causes nixos-install to fail in a nix-shell because the system shell variable is automatically set to the current system (e.g. x86_64-linux).
* nixos-option: fix #47722 when missing ~/.nix-defexpr/channelsVladimír Čunát2018-10-04
| | | | | | | | The problem was that the non-fatal warning was not omitted from the output when constructing a nix expression. Now it seems OK for me. When return code is OK, the warnings don't get passed anywhere, but I expect that won't matter for this utility. Fatal errors are still shown.
* Merge pull request #47482 from peterhoeg/f/hypervPeter Hoeg2018-10-03
|\ | | | | nixos on hyperv: load proper modules and make installer use the module
| * nixos-installer: use the hyperv module on hypervPeter Hoeg2018-09-28
| |
* | nix: 2.1.2 -> 2.1.3Eelco Dolstra2018-10-02
|/
* nixos: doc: move non-service parts of `service.nixosManual` to ↵Jan Malakhovski2018-09-23
| | | | `documentation.nixos`
* nixos: doc: rename `manual` to `manualHTML`, cleanup referencesJan Malakhovski2018-09-23
| | | | | | Because when I see "config.system.build.manual.manual" after I forgot what it means I ask "Why do I need that second `.manual` there again?". Doesn't happen with `config.system.build.manual.manualHTML`.
* nixos/iso-image: fix 32bit UEFI bootUli Baum2018-09-23
| | | | | | UEFI iso image for i686 didn't boot because the default boot file was incorrectly named bootx32.efi. The correct name is bootia32.efi.
* Merge pull request #46510 from worldofpeace/installer-refactoradisbladis2018-09-20
|\ | | | | installer: refactor
| * installer: refactorworldofpeace2018-09-11
| |
* | nix: 2.1.1 -> 2.1.2Eelco Dolstra2018-09-20
|/
* nix: 2.1 -> 2.1.1Eelco Dolstra2018-09-06
|
* nix: 2.0.4 -> 2.1Eelco Dolstra2018-09-03
|
* nixos-generate-config.pl: remove executable bitUli Baum2018-09-01
| | | | | it was erroneously set in cb1ca420092c8854592afcf1cc0245b7245358f1 although this file isn't executable before patching shebangs.
* nixos-generate-config: fix perl quoting after cb1ca42Vladimír Čunát2018-09-01
|
* Merge #45910: Fix i686 installer iso buildVladimír Čunát2018-09-01
|\
| * nixos/iso-image.nix: fixes i686 installer iso build.Samuel Dionne-Riel2018-09-01
| | | | | | | | Fixes #45908
* | nixos/doc: add instructions for installation behind a proxy (#45854)Venkateswara Rao Mandela2018-09-01
|/ | | | | | | | | | | | | | | | The instructions to install nixos behind a proxy were not clear. While one could guess that setting http_proxy variables can get the install rolling, one could end up with an installed system where the proxy settings for the nix-daemon are not configured. This commit updates the documentation with 1. steps to install behind a proxy 2. configure the global proxy settings so that nix-daemon can access internet. 3. Pointers to use nesting.clone in case one has to use different proxy settings on different networks.
* reewide: Purge all uses `stdenv.system` and top-level `system`John Ericson2018-08-30
| | | | It is deprecated and will be removed after 18.09.
* Use a themed grub for the installer imageSamuel Dionne-Riel2018-08-24
| | | | | This replaces systemd-boot with grub, it is at feature parity, as in it can do everything systemd-boot did in the previous commit.
* Adds refind to the installer image.Samuel Dionne-Riel2018-08-24
| | | | | | | | | | | | | | | | | | | | This is a 277K (as of right now) addition that can greatly help in some last recourse scenarios. The specific rEFInd setup will not be able to boot the installer image, but this is not why it has been added. It has been added to make use of its volumes scanning capabilities to boot existing EFI images on the target computer, which is sometimes necessary with buggy EFI. While is isn't NixOS's job to fix buggy EFI, shipping this small bit with the installer will help the unlucky few. Example scenario: two wildly different EFI implementation I have encountered have fatal flaws in which they sometimes will lose all the settings, this includes boot configuration. This is compounded by the fact that the two specific and distinct implementation do not allow manually adding ESP paths from their interface. The only recourse is to let the EFI boot the default paths, EFI/boot/boot{platform}.efi, which is not a default location used by the NixOS bootloaders. rEFInd is able to scan the volumes and detect the existing efi bootloaders, and boot them successfully.
* Fixes isolinux configuration for new artwork.Samuel Dionne-Riel2018-08-24
|
* usb-storage -> uasvolth2018-08-23
| | | | | | | Following up https://github.com/NixOS/nixpkgs/pull/23665 Bootable USB-drives are not limited to ISO-images, there can be "normal" MBR/GPT-partitioned disk connected via USB-rack. Also, "uas" implies "usb-storage", so there is no need to mention both.
* Merge pull request #45405 from NixOS/nixos-netboot-dedupxeji2018-08-21
|\ | | | | nixos/netboot: Remove redundant setting
| * nixos/netboot: Remove redundant settingJohn Ericson2018-08-20
| | | | | | @volth tells me that is the default for `system.boot.loader.kernelFile` anyways.
* | sd-image: Fix cross compilingWill Fancher2018-08-21
|/
* treewide: Purge `stdenv.platform` and top-level `platform`John Ericson2018-08-20
| | | | Progress towards #27069
* set initialHashedPassword in installation-device.nixBob van der Linden2018-08-07
|
* Merge pull request #44108 from bennofs/gen-config-extlinuxSilvan Mosberger2018-08-05
|\ | | | | nixos-generate-config: detect extlinux bootloader
| * nixos-generate-config: detect extlinux bootloaderBenno Fünfstück2018-07-25
| |
* | Revert "nixos: rename system.{stateVersion,defaultChannel} -> system.nixos.\1"Tuomas Tynkkynen2018-07-28
|/ | | | | | | | | | | This reverts commit 095fe5b43def40279a243e663c662b02caac5318. Pointless renames considered harmful. All they do is force people to spend extra work updating their configs for no benefit, and hindering the ability to switch between unstable and stable versions of NixOS. Like, what was the value of having the "nixos." there? I mean, by definition anything in a NixOS module has something to do with NixOS...
* [bot] nixos/*: remove unused arguments in lambdasvolth2018-07-20
|
* [bot]: remove unreferenced codevolth2018-07-20
|
* Merge pull request #43147 from Ma27/fix-nixos-option-evaluationFranz Pletz2018-07-16
|\ | | | | nixos/nixos-option: don't abort in case of evaluation errors
| * nixos/nixos-option: don't abort in case of evaluation errorsMaximilian Bosch2018-07-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When running e.g. `nixos-option boot.kernelPackages` I get an output like this on the current unstable channel (18.09pre144959.be1461fc0ab): ``` $ nixos-option boot.kernelPackages Value: *exit 1* ``` This is fairly counter-intuitive as I have no clue what might went wrong. `strace` delivers an output like this: ``` read(3, "error: Package \342\200\230cryptodev-linu"..., 128) = 128 read(3, "ux/cryptodev/default.nix:22 is m"..., 128) = 128 read(3, "lowBroken = true; }\nin configura"..., 128) = 128 read(3, "you can add\n { allowBroken = tr"..., 128) = 128 read(3, "n)\n", 128) = 3 read(3, "", 128) = 0 ``` `nixos-option` evaluates the system config using `nix-instantiate` which might break when the evaluation fails (e.g. due to broken or unfree packages that are prohibited to evaluate by default). The script aborts due to the shebang `@shell@ -e`. In order to ensure that no unexpected behavior occurs due to removing `-e` from the interpreter the easiest way to work around this was to wrap `nix-instantiate` in `evalNix()` with a `set +e`. The function checks the success of the evaluation with `$?` in the end. Additionally `evalNix` shouldn't break, if one evaluation (e.g. the values that contain a package set by default) to return additional information like a description. With the change `nixos-option boot.kernelPackages` delivers the following output for me: ``` Value: error: Package ‘cryptodev-linux-1.9-4.14.52’ in /nix/store/47z2s8cwppymmgzw6n7pbcashikyk5jk-nixos/nixos/pkgs/os-specific/linux/cryptodev/default.nix:22 is marked as broken, refusing to evaluate. Default: { __unfix__ = <LAMBDA>; acpi_call = <CODE>; amdgpu-pro = <CODE>; ati_drivers_x11 = <CODE>; batman_adv = <CODE>; bbswitch = <CODE>; bcc = <CODE>; beegfs-module = <CODE>; blcr = <CODE>; broadcom_sta = <CODE>; callPackage = <CODE>; cpupower = <CODE>; cryptodev = <CODE>; dpdk = <CODE>; e1000e = <CODE>; ena = <CODE>; evdi = <CODE>; exfat-nofuse = <CODE>; extend = <CODE>; facetimehd = <CODE>; fusionio-vsl = <CODE>; hyperv-daemons = <CODE>; ixgbevf = <CODE>; jool = <CODE>; kernel = <CODE>; lttng-modules = <CODE>; mba6x_bl = <CODE>; mwprocapture = <CODE>; mxu11x0 = <CODE>; ndiswrapper = <CODE>; netatop = <CODE>; nvidiaPackages = <CODE>; nvidia_x11 = <CODE>; nvidia_x11_beta = <CODE>; nvidia_x11_legacy304 = <CODE>; nvidia_x11_legacy340 = <CODE>; nvidiabl = <CODE>; odp-dpdk = <CODE>; openafs = <CODE>; openafs_1_8 = <CODE>; perf = <CODE>; phc-intel = <CODE>; pktgen = <CODE>; ply = <CODE>; prl-tools = <CODE>; recurseForDerivations = true; rtl8192eu = <CODE>; rtl8723bs = <CODE>; rtl8812au = <CODE>; rtl8814au = <CODE>; rtlwifi_new = <CODE>; sch_cake = <CODE>; spl = <CODE>; splLegacyCrypto = <CODE>; splStable = <CODE>; splUnstable = <CODE>; stdenv = <CODE>; sysdig = <CODE>; systemtap = <CODE>; tbs = <CODE>; tmon = <CODE>; tp_smapi = <CODE>; usbip = <CODE>; v4l2loopback = <CODE>; v86d = <CODE>; vhba = <CODE>; virtualbox = <CODE>; virtualboxGuestAdditions = <CODE>; wireguard = <CODE>; x86_energy_perf_policy = <CODE>; zfs = <CODE>; zfsLegacyCrypto = <CODE>; zfsStable = <CODE>; zfsUnstable = <CODE>; } Example: { _type = "literalExample"; text = "pkgs.linuxPackages_2_6_25"; } Description: "This option allows you to override the Linux kernel used by\nNixOS. Since things like external kernel module packages are\ntied to the kernel you're using, it also overrides those.\nThis option is a function that takes Nixpkgs as an argument\n(as a convenience), and returns an attribute set containing at\nthe very least an attribute <varname>kernel</varname>.\nAdditional attributes may be needed depending on your\nconfiguration. For instance, if you use the NVIDIA X driver,\nthen it also needs to contain an attribute\n<varname>nvidia_x11</varname>.\n" Declared by: "/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/system/boot/kernel.nix" Defined by: "/home/ma27/Projects/nixos-config/system/boot.nix" ```
* | sdImage: make partition ID/UUID configurableAndrew Dunham2018-07-12
|/
* nixos-generate-config.pl: users.extraUsers-> users.usersFlorian Klink2018-06-30
|
* nixos/modules/installer: users.extraUsers -> users.usersFlorian Klink2018-06-30
|
* not-detected: use lib.mkDefaultYegor Timoshenko2018-06-17
|
* Merge branch 'plat-fix-for-merge-2' into masterTuomas Tynkkynen2018-06-01
|\
| * nixos/sd-image-raspberrypi: Support Raspberry Pi ZeroTuomas Tynkkynen2018-06-01
| |
* | nix: 2.0.3 -> 2.0.4Eelco Dolstra2018-05-31
| |
* | nix: 2.0.2 -> 2.0.3Eelco Dolstra2018-05-30
|/
* Remove all references to absent nixos-prepare-rootPhilippe Grégoire2018-05-18
| | | | Fixes the broken 0f5d5970b28c9d85e7166f85ecfa3f86064d3f25 commit.
* nixos/tests: prevent stateVersion warnings in evalUli Baum2018-05-15
| | | | | ... introduced by 1f0b6922d3c continuation of 88fa50c2f2bbc472fe7169eac8f2a1b2312ef03b
* nixos: rename system.{stateVersion,defaultChannel} -> system.nixos.\1Jan Malakhovski2018-05-12
|
* nix: 2.0.1 -> 2.0.2Eelco Dolstra2018-05-04
|
* Merge pull request #39617 from Mic92/nixos-generate-configSarah Brofeldt2018-04-28
|\ | | | | nixos/nixos-generate-config: update search command
| * nixos/nixos-generate-config: update search commandJörg Thalheim2018-04-27
| |
* | nixos: installer: cleanup a bitJan Malakhovski2018-04-25
|/