about summary refs log tree commit diff
path: root/nixos/modules/profiles
AgeCommit message (Collapse)AuthorFilesLines
2023-01-04nixos/misc: add VARIANT_ID in /etc/os-release for identifying nixos installerlassulus1-0/+1
This is a feature useful for nixos-remote and other installation tools that try to identify if the remote machine has been successfully booted into an installer.
2023-01-03darwin.builder: auto-login as the `builder` user (#208772)Gabriella Gonzalez1-3/+7
… as suggested by @NiklasGollenstede in: https://github.com/NixOS/nixpkgs/pull/206951#issuecomment-1369020601 This simplifies the user experience for logging into and debugging the machine and also simplifies the instructions for shutting down the machine gracefully.
2023-01-02darwin.builder: prefer shutting down over halting VM (#208450)Winter1-9/+21
This is preferable because it prevents things like disk corruption (requiring the user to delete the disk image when starting up) that I consistently ran into.
2022-12-28nixos/macos-builder: Remove unnecessary paragraphRobert Hensing1-5/+0
I was considering the broader context of stateVersion, but the macos builder does not enable documentation, making this paragraph a distraction.
2022-12-28nixos/macos-builder: Simplify error messageRobert Hensing1-5/+1
The `system` argument is usually implied, and not hard to figure out. Co-authored-by: Gabriella Gonzalez <Gabriel439@gmail.com>
2022-12-28darwin.builder: Avoid unnecessary dependency on stateVersionRobert Hensing1-1/+28
2022-12-26darwin.builder: Fix gratuitous rebuildsGabriella Gonzalez1-1/+6
See the discussion starting here: https://github.com/NixOS/nixpkgs/pull/206951#issuecomment-1364760917 The `darwin.builder` derivation had a gratuitous dependency on the current Nixpkgs revision due to `config.system.nixos.revision`. Setting the revision explicitly to null fixes this problem and prevents the derivation from being rebuilt on every change to Nixpkgs.
2022-12-24darwin.builder: Fix `system` for `install-credentials`Gabriella Gonzalez1-1/+1
The script was being mistakenly being built for the guest system instead of the host system
2022-12-23darwin.builder: Fix supported platformsGabriella Gonzalez1-3/+9
See: https://github.com/NixOS/nixpkgs/issues/108984#issuecomment-1364263324 Before this change the supported platforms were unspecified, so it would default to being only built on `x86_64-linux`. This fixes that so that hydra.nixos.org builds and caches the Darwin build products instead
2022-12-19darwin.builder: initGabriella Gonzalez3-0/+142
Fixes https://github.com/NixOS/nixpkgs/issues/108984 This originates from: https://github.com/Gabriella439/macos-builder … which in turn originates from: https://github.com/YorikSar/nixos-vm-on-macos
2022-12-13nixos/modules/profiles/base.nix: add nvme-cliJose Cardoso1-0/+1
2022-12-09nixos/profiles/minimal: disable udisks serviceIzorkin1-0/+2
2022-12-09nixos/profiles/minimal: disable logrotate serviceIzorkin1-0/+2
2022-12-09nixos/profiles/minimal: disable documentationIzorkin1-0/+6
2022-12-03Merge pull request #201380 from Ma27/installer/vim-with-nix-supportMaximilian Bosch1-1/+7
nixos/profiles/base: install vim w/nix-syntax plugin
2022-12-03nixos/profiles/base: install vim w/nix-syntax pluginMaximilian Bosch1-1/+7
Considering that you most likely edit Nix code in the installer, that seems like a useful thing. The size of the ISO I got from nix-build nixos/release.nix -A iso_minimal.x86_64-linux is still at 877M.
2022-12-01Merge pull request #203826 from figsoda/lintfigsoda1-6/+5
nixos/*: apply some lints from statix and nil
2022-12-01Merge pull request #98633 from DavHau/patch-1Ryan Lahfa1-1/+1
profiles: add HP Smart Array RAID scsi driver to all-hardware.nix
2022-11-30nixos/docker-image: clean up let-in bindingfigsoda1-6/+5
2022-10-21nixos/profiles/minimal: don't install freedesktop filesrnhmjoj1-0/+5
This saves about 25M from the closure size of: $ nix build -f nixos system --arg configuration ' { imports = [ ./nixos/modules/profiles/minimal.nix ]; fileSystems."/".label="root"; boot.loader.grub.device = "nodev"; }'
2022-10-10nixos/installer: fix eval with missing config argAlyssa Ross1-1/+1
Fixes: 4cdda329f06 ("nixos/modules/profiles/base.nix: omit zfs if unavailable")
2022-10-10nixos/modules/profiles/base.nix: omit zfs if unavailableAdam Joseph1-1/+3
The `boot.zfs.enabled` option is marked `readOnly`, so this is the only way to successfully build a NixOS installer image for platforms that zfs does not build for. Co-authored-by: Alyssa Ross <hi@alyssa.is>
2022-08-14nixos/installer: mkForce -> mkImageMediaOverrideAndrew Marshall1-3/+3
This is image media, so use the override level designed for it. As detailed in the definition for mkImageMediaOverride: > image media profiles can be derived by inclusion into host config, > hence needing to override host config, but do allow user to mkForce
2022-08-06nixos/*: automatically convert option docspennae1-3/+3
2022-08-04Merge pull request #143885 from peat-psuwit/all-hardware-reset-raspberryK9001-0/+3
profiles/all-hardware.nix: add reset-raspberry for USB on RPi 4
2022-07-30treewide: use isAarch where appropriateAlyssa Ross1-1/+1
2022-06-11nixos/i18n: don't build all supportedLocales by defaultSandro Jäckel1-3/+0
2022-04-30Merge pull request #169113 from ElvishJerricco/systemd-stage-1-installer-testsBernardo Meurer1-0/+4
nixos: Installer tests for systemd stage 1
2022-04-30nixos/*qemu*: Add systemd initrd supportJanne Heß1-2/+2
2022-04-26nixos/modules/profiles/all-hardware: add nvme to initrd modulesBernardo Meurer1-0/+3
2022-04-17nixos: Installer tests for systemd stage 1Will Fancher1-0/+4
2022-01-26nixos/nix-daemon: use structural settingspolykernel1-1/+1
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
2022-01-06all-hardware: Add virtio_mmio moduleZhaofeng Li1-1/+1
2022-01-06all-hardware: Disable VMWare and Hyper-V modules on non-X86 platformsZhaofeng Li1-1/+1
2021-11-19Merge pull request #146288 from Artturin/mtoolsandsuchArtturi1-0/+1
2021-11-17profiles/base: add mtoolsArtturin1-0/+1
2021-11-16nixos/profiles/minimal: disable command-not-foundArtturin1-0/+2
reduces size by about 1M
2021-11-13profiles/all-hardware.nix: add reset-raspberry for USB on RPi 4Ratchanan Srirattanamet1-0/+3
This is needed for USB to work on RPi 4. Kernel's defconfig demoted the module from built-in to module in 5.14. See [1]. [1] https://lore.kernel.org/linux-arm-kernel/ab43364b-55cc-08e6-a647-6e50a1743f03@gmail.com/
2021-08-20NixOS AWS AMI: enable the serial console on ttyS0Your Name1-1/+1
2021-08-15nixos/installer: simplify and document wifi setuprnhmjoj1-0/+6
The wpa_supplicant service in the NixOS installer is unusable because the control socket is disabled and /etc/wpa_supplicant.conf ignored. The manual currently recommends manually starting the daemon and using wpa_passphrase, but this requires figuring out the interface name, driver and only works for WPA2 personal networks. By enabling the control socket, instead, a user can configure the network via wpa_cli (or wpa_gui in the graphical installer), which support more advanced network configurations.
2021-05-17Merge pull request #85073 from hyperfekt/systemd-pstoreFlorian Klink1-0/+8
nixos/systemd|filesystems: mount and evacuate /sys/fs/pstore using systemd-pstore
2021-05-14Merge master into staging-nextgithub-actions[bot]1-0/+3
2021-05-13Merge pull request #110435 from superloach/patch-2Samuel Dionne-Riel1-0/+3
nixos/modules: add "sdhci_pci" to availableKernelModules
2021-05-09nixos/systemd: enable systemd-pstore.servicehyperfekt1-0/+8
As described in issue #81138, the Install section of upstream units is currently ignored, so we make it part of the sysinit.target manually.
2021-05-08Merge master into staging-nextgithub-actions[bot]1-1/+56
2021-05-04profiles/all-hardware.nix: Add vc4 for broadcom hardwareSamuel Dionne-Riel1-0/+4
Namely, early KMS on raspberry pi
2021-05-04profiles/all-hardware.nix: Share some config for all ARMSamuel Dionne-Riel1-1/+5
2021-05-04profiles/all-hardware.nix: Fix for arvmv7l-linuxSamuel Dionne-Riel1-1/+1
2021-05-04profiles/all-hardware.nix: Add analogix-dpSamuel Dionne-Riel1-0/+1
While it's being brought in implicitly by the other analogix driver, let's be explicit, in case things change.
2021-05-04profiles/all-hardware.nix: Add regulator needed for rockchipSamuel Dionne-Riel1-0/+1
But not exclusive to rockchip