summary refs log tree commit diff
path: root/nixos/modules/installer
Commit message (Collapse)AuthorAge
* nixos-install: remove manifest related stuffobadz2016-08-24
|
* Merge branch 'install-bootloader-flag'Shea Levy2016-08-17
|\
| * Deprecate --install-grub in favor of --install-bootloader for nixos-rebuild.Shea Levy2016-08-16
| | | | | | | | Fixes #14293
* | nixos/lib/make-disk-image: refactor to use nixos-installobadz2016-08-16
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Replace hand-rolled version of nixos-install in make-disk-image by an actual call to nixos-install - Required a few cleanups of nixos-install - nixos-install invokes an activation script which the hand-rolled version in make-disk-image did not do. We remove /etc/machine-id as that's a host-specific, impure, output of the activation script Testing: nix-build '<nixpkgs/nixos/release.nix>' -A tests.installer.simple passes Also tried generating an image with: nix-build -E 'let pkgs = import <nixpkgs> {}; lib = pkgs.lib; nixos = import <nixpkgs/nixos> { configuration = { fileSystems."/".device = "/dev/disk/by-label/nixos"; boot.loader.grub.devices = [ "/dev/sda" ]; boot.loader.grub.extraEntries = '"''"' menuentry "Ubuntu" { insmod ext2 search --set=root --label ubuntu configfile /boot/grub/grub.cfg } '"''"'; }; }; in import <nixpkgs/nixos/lib/make-disk-image.nix> { inherit pkgs lib; config = nixos.config; diskSize = 2000; partitioned = false; installBootLoader = false; }' Then installed the image: $ sudo df if=./result/nixos.img of=/dev/sdaX bs=1M $ sudo resize2fs /dev/disk/by-label/nixos $ sudo mount /dev/disk/by-label/nixos /mnt $ sudo mount --rbind /proc /mnt/proc $ sudo mount --rbind /dev /mnt/dev $ sudo chroot /mnt /nix/var/nix/profiles/system/bin/switch-to-configuration boot [ … optionally do something about passwords … ] and successfully rebooted to that image. Was doing all this from inside a Ubuntu VM with a single user nix install.
* nixos-install: cleanups & improvements to run on non-NixOS systemsobadz2016-08-16
| | | | | | | | | | | | | | | - Fix --no-bootloader which didn't do what it advertised - Hardcode nixbld GID so that systems which do not have a nixbld user can still run nixos-install (only with --closure since they can't build anything) - Cleanup: get rid of NIX_CONF_DIR(=/tmp)/nix.conf and pass arguments instead - Cleanup: don't assume that the target system has '<nixpkgs/nixos>' or '<nixos-config>' to see if config.users.mutableUsers. Instead check if /var/setuid-wrappers/passwd is there Installing NixOS now works from a Ubuntu host (using --closure). nix-build -A tests.installer.simple '<nixpkgs/nixos/release.nix>' succeeds ✓
* nixos: remove rsync from base install and add explicit path in nixos-installobadz2016-08-09
| | | | As per https://github.com/NixOS/nixpkgs/commit/60b3f95ad86826faf95680a3529ced1c322d4d87#commitcomment-18507812
* nixos-install: more robust way of sourcing fresh version of selfobadz2016-08-09
|
* Revert adding .git-revision unconditionallyaszlig2016-08-09
| | | | | | | | | | | | | | | This reverts commit 1e534e234b0a92bf06361fa41b7ac8691fdbc769. We already should have a .git directory if it is managed via Git, otherwise there is no way to get the Git revision if neither .git-revision or .git is present. But having .git-revision _and_ .git present seems very much redundant to me. Signed-off-by: aszlig <aszlig@redmoonstudios.org> Cc: @bennofs, @Profpatsch Issue: #17218
* nixos-install: add options --closure, --no-channel-copy, --no-root-passwd, ↵obadz2016-08-04
| | | | | | | | and --no-bootloader Closes #17236 nix-build -A tests.installer.simple '<nixos/release.nix>' succeeds ✓
* fix nixos-version --hash when building from gitBenno Fünfstück2016-07-23
|
* nixos-version: fix syntax error and add -h (#16906)davidak2016-07-13
| | | | | | * nixos-version: fix syntax error * nixos-version: add -h parameter
* doc: add man page for nixos-version (#16869)Graham Christensen2016-07-12
|
* sd-image-armv7l-multiplatform.nix: Preliminary Raspberry Pi 2/3 supportTuomas Tynkkynen2016-07-04
| | | | | | | - RPi3 successfully gets to U-Boot, but then fails to boot the kernel due to a missing device tree file. This should get added to the 4.8 kernel release once this patch is merged: https://lkml.org/lkml/2016/6/1/841 - RPi2 is not tested, but it should successfully boot the NixOS image.
* sd-image-*: Set verbose kernel loglevelTuomas Tynkkynen2016-07-03
| | | | Much easier to debug boot issues this way...
* sd-image-armv7l-multiplatform: Add boot console for BeagleBone BlackTuomas Tynkkynen2016-07-03
|
* Merge pull request #15579 from abbradar/nixos-install-sslNikolay Amiantov2016-06-23
|\ | | | | nixos-install: fix SSL certificate error
| * nixos-install: fix SSL certificate errorNikolay Amiantov2016-05-20
| |
* | Rename boot.loader.gummiboot.enable -> boot.loader.systemd-boot.enableEelco Dolstra2016-06-01
| |
* | iso-image.nix: Fix path to EFI blob after systemd-boot switchTuomas Tynkkynen2016-06-01
| | | | | | | | | | | | This evaluates, but I can't verify if it works. @edolstra
* | nixos-generate-config: Emit LUKS configuration for boot deviceEelco Dolstra2016-05-25
| |
* | nixos-generate-config: Enable strictnessEelco Dolstra2016-05-25
| |
* | Remove boot.loader.grub.timeout and boot.loader.gummiboot.timeoutEelco Dolstra2016-05-25
|/ | | | There is a generic boot.loader.timeout option.
* installer: simple PXE bootable NixOS installerNahum Shalman2016-04-29
| | | | | | | The Nix store squashfs is stored inside the initrd instead of separately (cherry picked from commit 976fd407796877b538c470d3a5253ad3e1f7bc68) Signed-off-by: Domen Kožar <domen@dev.si>
* treewide: Use correct output of config.nix.package in non-string contextsTuomas Tynkkynen2016-04-25
|
* treewide: Use correct output in ${config.nix.package}/binTuomas Tynkkynen2016-04-25
|
* nixos-checkout: RemoveEelco Dolstra2016-04-20
| | | | | | This command was useful when NixOS was spread across multiple repositories, but now it's pretty pointless (and obfuscates what happens, i.e. "git clone git://github.com/NixOS/nixpkgs.git").
* Merge branch 'staging', containing closure-size #7701Vladimír Čunát2016-04-13
|\
| * Merge branch 'master' into closure-sizeVladimír Čunát2016-04-10
| |\ | | | | | | | | | | | | | | | Comparison to master evaluations on Hydra: - 1255515 for nixos - 1255502 for nixpkgs
| * \ Merge 'staging' into closure-sizeVladimír Čunát2016-04-07
| |\ \ | | | | | | | | | | | | | | | | | | | | This is mainly to get the update of bootstrap tools. Otherwise there were mysterious segfaults: https://github.com/NixOS/nixpkgs/pull/7701#issuecomment-203389817
| * \ \ Merge master into closure-sizeVladimír Čunát2016-03-08
| |\ \ \ | | | | | | | | | | | | | | | | | | | | The kde-5 stuff still didn't merge well. I hand-fixed what I saw, but there may be more problems.
| * \ \ \ Merge branch 'master' into closure-sizeVladimír Čunát2016-02-14
| |\ \ \ \
| * \ \ \ \ Merge recent 'staging' into closure-sizeVladimír Čunát2016-02-03
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Let's get rid of those merge conflicts.
| * \ \ \ \ \ Merge branch 'staging' into closure-sizeVladimír Čunát2016-01-19
| |\ \ \ \ \ \
| * \ \ \ \ \ \ Merge branch 'master' into closure-sizeVladimír Čunát2015-12-31
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TODO: there was more significant refactoring of qtbase and plasma 5.5 on master, and I'm deferring pointing to correct outputs to later.
| * \ \ \ \ \ \ \ Merge staging into closure-sizeVladimír Čunát2015-11-20
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The most complex problems were from dealing with switches reverted in the meantime (gcc5, gmp6, ncurses6). It's likely that darwin is (still) broken nontrivially.
| * | | | | | | | | nixos/auto-upgrade: Reference correct xz outputTuomas Tynkkynen2015-10-03
| | | | | | | | | |
* | | | | | | | | | nixos-generate-config: lower priority of nix.maxJobsVladimír Čunát2016-04-12
| |_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #6429.
* | | | | | | | | nixos-generate-config.pl: correct path for broadcom-43xxDomen Kožar2016-03-31
| |_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (cherry picked from commit b01eedaeecd4bd292fd9a22225c9490a285e3b77) Signed-off-by: Domen Kožar <domen@dev.si>
* | | | | | | | nixos-rebuild: Fix Nix fallbackEelco Dolstra2016-03-30
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | Somebody forgot that Bash is not a real programming language...
* | | | | | | Revert "Add the tool "nixos-typecheck" that can check an option declaration to:"Eelco Dolstra2016-03-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit cad8957eabcbf73062226d28366fd446c15c8737. It breaks NixOps, but more importantly, such major changes to the module system really need to be reviewed.
* | | | | | | Merge pull request #10288 from lethalman/gnomeisoLuca Bruno2016-02-29
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | installer: add graphical GNOME iso
| * | | | | | | installer: add graphical GNOME isoLuca Bruno2016-02-29
| | | | | | | |
* | | | | | | | Add the tool "nixos-typecheck" that can check an option declaration to:Thomas Strobel2016-02-29
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Enforce that an option declaration has a "defaultText" if and only if the type of the option derives from "package", "packageSet" or "nixpkgsConfig" and if a "default" attribute is defined. - Enforce that the value of the "example" attribute is wrapped with "literalExample" if the type of the option derives from "package", "packageSet" or "nixpkgsConfig". - Warn if a "defaultText" is defined in an option declaration if the type of the option does not derive from "package", "packageSet" or "nixpkgsConfig". - Warn if no "type" is defined in an option declaration.
* | | | | | | Merge branch 'master' into stagingVladimír Čunát2016-02-17
|\ \ \ \ \ \ \
| * \ \ \ \ \ \ Merge pull request #12742 from dezgeg/pr-uboot-changesTuomas Tynkkynen2016-02-15
| |\ \ \ \ \ \ \ | | |_|_|_|_|_|/ | |/| | | | | | U-Boot: 2015.10 -> 2016.01, refactor & support some new boards
| | * | | | | | sd-image.nix: Move the /boot partition up to 8MTuomas Tynkkynen2016-02-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reportedly some ARM boards need some boot code at the start of a SD card that could be larger than a megabyte. Change it to 8M, and while at it reduce the /boot size such that the root partition should now start on a 128M boundary (the flash on SD cards really don't like non-aligned writes these days).
| | * | | | | | sd-image-armv7l-multiplatform.nix: Add ttymxc0 to the list of consolesTuomas Tynkkynen2016-02-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Needed for the RS-232 port on Wandboard Quad (and presumably other boards using the i.MX6 SoC).
| * | | | | | | nixos-install: don't check that /mnt is a mount pointNikolay Amiantov2016-02-10
| | | | | | | |
| * | | | | | | Merge pull request #10417 from puffnfresh/nixos/mmc_blockRobin Gloster2016-02-08
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | initrd: add mmc_block to default available modules
| | * | | | | | | initrd: add mmc_block to default available modulesBrian McKenna2015-10-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mmc_block and sdhci_acpi are both necessary for a Bay Trail Chromebook with an internal eMMC drive. The sdhci_acpi module is detectable but I can not figure out a way to check whether the mmc_block module is needed by just looking at /sys/