Commit graph

1292 commits

Author SHA1 Message Date
Will Fancher 1b68466acf nixos/installer: Include bcachefs in latest kernel boot option. 2025-10-15 22:27:08 +05:30
Felix Stupp 604b955324
nixos/netboot: use initrd.compressorArgs on netbootRamdisk
- because already boot.initrd.compressor is used, one could expect
  compressorArgs is also used
- this allows users to customize the compression speed for netboot
  builds
2025-10-05 17:58:54 +00:00
K900 e93c560b79 Merge remote-tracking branch 'origin/master' into staging-next 2025-10-05 12:17:08 +03:00
Wolfgang Walther 91a8fee3aa
treewide: remove redundant parentheses
Auto-fixed by nixf-diagnose.
2025-10-05 10:52:03 +02:00
Wolfgang Walther c283f32d29
treewide: remove unused with
Auto-fixed by nixf-diagnose.
2025-10-05 10:50:41 +02:00
nixpkgs-ci[bot] 1f71b1fc26
Merge master into staging-next 2025-10-04 00:15:35 +00:00
Maximilian Bosch a6b0564b7d
nixos/filesystems: fix special file-systems for systemd-nspawn (#345899) 2025-10-03 19:33:31 +00:00
nixpkgs-ci[bot] a4cb5a506b
Merge master into staging-next 2025-10-02 00:16:08 +00:00
Philip Taron 4b4987c5c2
nixos/tools: remove deprecated accessors for pkgs.nixos-option and pkgs.nixos-enter
These warnings were added in 5dcbab6. It has been a full year since they were added -- time to remove them.
2025-10-01 08:38:15 -07:00
Philip Taron 4b1a0a4aab nixVersions.stable: nix_2_28 -> nix_2_31 2025-09-22 21:17:18 +02:00
Maximilian Bosch a532cb052e
nixos/containers: add boot.isNspawnContainer option
There are a bunch of components such as incus or LXC that also use
`boot.isContainer`, so we'd have to differentiate between "OS container"
and "actually nspawn".

This became necessary for the file-systems part where nspawn takes care
of setting up special filesystems like `/proc`, `/dev` etc., but others
don't.

To allow for a `boot.isContainer` being less overloaded, this introduces
`boot.isNspawnContainer` that is exclusively used for nspawn-specific
things. When `true`, `boot.isContainer = true;` is implied.
2025-09-21 13:26:23 +02:00
Philip Taron a75061e577
nixVersions.nix_2_28: 2.28.4 -> 2.28.5
Diff: https://github.com/NixOS/nix/compare/refs/tags/2.28.4...refs/tags/2.28.5

No changelog found; this brings backported changes from June through August to the stable Nix for Nixpkgs.
2025-09-02 10:18:14 -07:00
K900 15a586f29d nixos: remove Plasma 5 2025-08-21 23:09:23 +03:00
Fernando Rodrigues 8e33818f56
nixos/installer/sd-card: add rootVolumeLabel option (#343003) 2025-08-14 06:10:18 +00:00
K900 fda8b43ed9 nixos/iso: enable partition-manager (for kpmcore) 2025-08-10 10:19:20 +03:00
K900 fb7d7c5fe0 calamares: 3.3.13 -> 3.4.0, qt6-ize, clean up, move to by-name 2025-08-10 10:18:31 +03:00
Emily 46aad76001
nixos/iso-image: Support systemd initrd (#291750) 2025-08-10 05:37:48 +01:00
superherointj 663f1d8ba2 nixos/modules/installer/sd-card: allow to customize volume label 2025-08-06 16:08:01 -03:00
lassulus 6c6f8f9bd4
nixos/installation-cd-base: fix installer expecting LUKS devices (#426005) 2025-08-02 12:54:56 +02:00
Will Fancher 12d0a6084b
iso-image: ensure boot.loader.grub.enable is disabled by default (#430027) 2025-08-01 22:31:46 -04:00
Will Fancher db42eeba6b nixos/iso-image: Support systemd initrd 2025-08-01 00:36:44 -04:00
Michael Hoang 7fd3735203 iso-image: ensure boot.loader.grub.enable is disabled by default
We use `mkImageMediaOverride` to ensure that GRUB is actually disabled
if a user enables it using the default priority but still allows them to
enable it using `mkForce`.
2025-08-01 14:30:10 +10:00
Emily 51a41ce9a1
installer/nixos-generate-config: remove broadcom_sta (#426831) 2025-07-27 05:35:35 +01:00
NullCube 9c9f467d49 installer/nixos-generate-config: remove broadcom_sta
Resolves the installer failing on devices that include this hardware, as
broadcom_sta was marked as insecure due to being unmaintained and having
active CVE's.

This commit be reverted when/if the installer has a mechanism for allowing
insecure packages.
2025-07-26 18:37:53 -07:00
Wolfgang Walther 5a0711127c
treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
phaer 037a064feb
sd-image: Fix image.filePath directory prefix 2025-07-18 11:12:08 -07:00
Michael Hoang 3aed2ac768 nixos/installation-cd-base: fix installer expecting LUKS devices
If we create an installer based on a configuration that uses LUKS and we try to
boot it on an unformatted machine, it will fail waiting for the LUKS device to
appear.

We override `boot.initrd.luks.devices` like the `qemu-vm` module to solve this issue:

f23e0d855a/nixos/modules/virtualisation/qemu-vm.nix (L1407-L1408)
2025-07-17 15:18:52 +10:00
Emily 8115e2b01a nixos-generate-config: prefer /dev/mapper paths for mounts
Currently, we generate `/dev/disk/by-uuid` paths for encrypted LUKS
volumes, which makes it impossible to determine that they are waiting
on a Device Mapper device at boot. Using `/dev/mapper` paths ensures
that systemd stage 1 waives its standard mount timeout for these
volumes to allow the user more time to enter the LUKS password.
2025-07-13 12:59:43 +01:00
Philip Taron 8279ffe622
treewide: specify that mebibytes are used when it's ambiguous (#424169) 2025-07-11 12:29:33 -07:00
Axel Karjalainen 7159ab6f43 treewide: specify where mebibytes are used when it's ambiguous 2025-07-11 00:44:23 +03:00
Martin Weinelt f633ed9278
nixos/installer: enable networkmanager by default (#420923) 2025-07-04 22:21:11 +02:00
Sandro 3376b10c73
nixos/nixos-generate-config: remove extra indentation in flake output (#420274) 2025-07-04 21:48:28 +02:00
Martin Weinelt 1ef7d63228
nixos/installer: ship the minimal ISO with networkmanager
With networkmanager we can provide a much more welcoming network setup
experience in the installer and it costs us less than 10 MB with this
configuration on the minimal ISO.

By default, for new profiles it will enable DHCP and RA and allow
interactive reconfiguration through `nmtui` or `nmcli`. Especially the
TUI interface is very easy to pick up and removes the need for typing in
manual commands when setting up the WLAN connection.
2025-06-30 10:37:11 +02:00
Martin Weinelt b05541933d
nixos/installer: enable networkmanager by default
This is the easiest pick for new users to get their footing on NixOS.

NetworKManager allows managing a wide variety of different network
interface types interactively and with ease. It replaces `useDHCP` since
its default profiles for Ethernet and WLAN come with DHCP enabled by
default.
2025-06-29 19:55:44 +02:00
ryunix 9feba7c2ff nixos/nixos-generate-config: remove extra indentation in flake output 2025-06-27 00:36:25 +09:00
Jörg Thalheim 28e4681066 nixVersions.nix: 2.28.3 -> 2.28.4 2025-06-24 18:25:41 +02:00
Emily a7a3457082 nixos/installer/plasma6: disable KDE PIM 2025-06-19 21:52:02 +01:00
Emily 49dd486796 nixos/installer/plasma6: exclude kdePackages.plasma-workspace-wallpapers 2025-06-19 21:51:38 +01:00
Thiago Kenji Okada 9806c0cd3e nixos/tools: enable system.rebuild.enableNg by default 2025-06-11 10:43:12 +01:00
Graham Christensen 7e7cf1ce2f nixos-generate-config: Add a flake default to the conf file 2025-06-06 10:32:55 -04:00
hand7s c464c44a42
nixos/gnome & nixos/gdm: move out of x11
Since DEs like KDE Plasma 6, GNOME and COSMIC are not designed to be X11-exclusive, putting them under `services.xserver` is misleading. In particular, GNOME defaults to Wayland these days and X11 support is going to be dropped in near future.

Let’s follow Plasma and move GNOME NixOS options out of `xserver` attribute.

This patch does not include any changes to X11 support itself.

Signed-off-by: John Titor <50095635+JohnRTitor@users.noreply.github.com>
2025-05-28 13:27:36 +02:00
Aleksana fef2e4ea93
nixos/installation-cd-graphical-base: disable hyper-v guest on exotic platforms (#403737) 2025-05-23 21:29:36 +08:00
Paul Haerle 36607ba6e6
installer/tools: fix grammatical error in docs (#388452) 2025-05-10 11:31:39 +02:00
Paul Haerle 772ee19537
installer: fix broken search suggestion in default config (#378797) 2025-05-09 20:35:51 +02:00
Weijia Wang cd16ea241c nixos/installation-cd-graphical-base: disable hyper-v guest on exotic platforms 2025-05-05 15:52:04 +02:00
Jörg Thalheim 7fd4e73000 nix: update nix-fallback-paths to 2.28.3 2025-04-30 08:35:16 +02:00
illustris 5803bdb9fc
Revert "Use mkImageMediaOverride for filesystem attributes of various images" 2025-04-29 08:41:26 +05:30
jopejoe1 326702f8bb
Use mkImageMediaOverride for filesystem attributes of various images (#397330) 2025-04-24 18:54:06 +02:00
zowoq e5b760b14f nix: update nix-fallback-paths to 2.28.2 2025-04-20 15:24:11 +10:00
phaer 5bd99195fa installer/sd-card: use mkImageMediaOverride...
...for filesystem options. Before this change, users would typically encounter conflicting option definitions when trying to build an image for a generic nixos closure, i.e. `nixos-rebuild build-image --image-variant sd-card --flake .#my-host`
2025-04-11 14:33:47 +02:00