Commit Graph

3816 Commits

Author SHA1 Message Date
K900
db02377418 nixos/boot/systemd: fix doc build 2026-02-16 13:28:45 +03:00
nixpkgs-ci[bot]
87191ff5ef Merge master into staging-nixos 2026-02-15 06:20:11 +00:00
programmerlexi
081365d23d nixos/limine: change name of signed fwupd file 2026-02-13 13:50:31 +01:00
nikstur
4aae99b7d7 nixos-init: init env-generator
The env generator allows us to declaratively set environment variables
via the module system for all systemd generators.

This will allow us to drop systemd/0013-inherit-systemd-environment-when-calling-generators.patch
2026-02-13 00:05:41 +01:00
Ramses
769d4fe8df nixos/power-management: run powerUpCommands in service instead of stage2-init.sh and deprecate powerUpCommands (#488429) 2026-02-12 16:18:56 +00:00
Christian Kögler
614d7f6300 nixos/clevis: fix luks support (#382585) 2026-02-11 20:20:05 +00:00
Christian Kögler
b01a78c74a nixos/clevis: fix luks support
Add missing packages when clevis is used for luks unlock
It is not needed to expose all execuables via extraBin, therefor removed
curl.
2026-02-11 21:09:26 +01:00
nixpkgs-ci[bot]
2598811932 Merge master into staging-nixos 2026-02-11 00:29:49 +00:00
nikstur
6456b174ee nixos-init: do not use chroot to resolve path in another root (#485656) 2026-02-10 21:47:46 +00:00
Arian van Putten
92a7ffa48c nixos/logind: remove redundant unit (#479879) 2026-02-10 13:06:33 +00:00
Wolfgang Walther
fea5e1f7c1 various: add {file} tags for nixos option descriptions (#455811) 2026-02-10 10:01:28 +00:00
r-vdp
34fd3fe6a2 nixos/power-management: run postBootCommands in a systemd service instead of stage2-init.sh
This reduces our initrd script slightly, and we never made any clear
ordering guarantees about when these commands run anyway.
It also removes this as a blocker for nixos-init.
2026-02-08 23:49:17 +02:00
Sandro
7b9868a3bf nixos/systemd-networkd: Add missing DHCP/RA "use" options (#480166) 2026-02-08 03:13:29 +00:00
nikstur
83c336fb18 nixos-init: use libpathrs instead of chroot to resolve path in sysroot 2026-02-01 13:08:23 +01:00
dramforever
22e8275ca3 nixos/systemd: Use systemd-tpm2-clear.service only if withTpm2Units
Move systemd-tpm2-clear.service so that it's conditional on
withTpm2Units. Fixes generateUnits build on MIPS.
2026-02-01 15:39:35 +08:00
dramforever
d5a1be3073 nixos/systemd: Fix one lib.optional[s] confusion 2026-02-01 15:39:35 +08:00
r-vdp
b5bb5d22da nixos-init: read the required paths from a file in the toplevel instead of from the environment
This is a first step towards using nixos-init also during re-activation.
2026-01-26 11:54:07 +01:00
nixpkgs-ci[bot]
b74649e38b Merge master into staging-nixos 2026-01-23 00:20:45 +00:00
Dyego Aurélio
28096cc5e3 treewide: apply nixfmt 1.2.0 2026-01-22 18:37:56 -03:00
nikstur
ee9a3bf5c5 nixos/systemd: expose factory reset functionality and add repart test case (#481696) 2026-01-22 10:21:14 +00:00
nixpkgs-ci[bot]
42db00e38e Merge master into staging-nixos 2026-01-22 00:21:11 +00:00
Sandro
5d8d87d59c nixos/initrd-network: fix defaultText rendering of udhcpc.enable option in search (#481276) 2026-01-21 23:37:20 +00:00
nixpkgs-ci[bot]
4101f3e3a4 Merge master into staging-nixos 2026-01-21 18:15:50 +00:00
WilliButz
9bac056a72 nixos/systemd: expose factory-reset units 2026-01-21 17:23:14 +01:00
Philip Taron
0dd7df1cd2 nixos/limine: add resolution option for Linux boot entries (#480458) 2026-01-21 13:27:10 +00:00
nixpkgs-ci[bot]
d172ccd368 Merge master into staging-nixos 2026-01-20 18:09:17 +00:00
jopejoe1
97f925962d nixosTests.activation-lib: don't use fileset 2026-01-19 12:21:00 +01:00
jopejoe1
ffc9c1bd48 nixosTests.activation.test-forbiddenDependencies-{fail,succeed}: set stateVersion 2026-01-19 12:19:26 +01:00
Ramses
f74cde140d nixos/activation: prefer local builds for activation script (#480993) 2026-01-19 09:18:29 +00:00
Ramses
980461af44 nixos/resolvconf: use config.systemd.package instead of pkgs.systemd (#480663) 2026-01-19 09:03:30 +00:00
Arian van Putten
ef696c6a60 nixos/switchable-system: improve switch inhibitors (#477800) 2026-01-18 20:46:53 +00:00
n3oney
4115b90d62 nixos/unl0kr: fix wrong package added to initrd 2026-01-18 21:07:44 +01:00
h7x4
b36f8e0b79 various: add {file} tags for nixos option descriptions 2026-01-18 21:49:31 +09:00
Sandro
5ba0f87669 nixos/initrd-network: fix defaultText rendering of udhcpc.enable option in search 2026-01-18 11:26:43 +01:00
nixpkgs-ci[bot]
4cf065154d Merge master into staging-nixos 2026-01-18 06:07:46 +00:00
Martin Weinelt
d86e8d4da5 nixos/resolved: fix regressions after interface change
With the options being only set when `services.resolved.enable` was
enabled, they were only available if the host resolver was resolved. That
broke the resolved config used when initrd networking is enabled.

A good indicator that something is wrong is if the config section of
a module configures the options itself. That means non introspectable
settings are being put in place.

Additionally DNS= and Domains= need to be space-separated lists. The
manpage does not indicate that they can be set multiple times.

I decided not to port the LLMNR enablement over, since it never gained
widespread traction and is generally being phased out in favor of mDNS.

Fixes: #480964
2026-01-18 02:46:09 +01:00
Norbert Melzer
c68bd3a944 nixos/activation: prefer local build
FIX #479747
2026-01-17 12:20:13 +01:00
r-vdp
75bba21f04 nixos/resolvconf: use config.systemd.package instead of pkgs.systemd 2026-01-16 11:48:06 +01:00
r-vdp
326c1b9b1d nixos/systemd-initrd: include the right fido_id binary in the initrd 2026-01-16 11:19:30 +01:00
Philip Taron
ffffc8aaa1 nixos/limine: add resolution option for Linux boot entries
Add boot.loader.limine.resolution option to control the framebuffer
resolution that Limine sets via GOP before booting Linux. This affects
early boot graphics drivers like simpledrm and efifb.

This is distinct from style.interface.resolution which only controls
the Limine bootloader's own menu interface - the new option sets the
per-entry "resolution:" directive in limine.conf which calls
gop->SetMode() to change the actual framebuffer resolution before
handing off to the kernel.

Example usage:
  boot.loader.limine.resolution = "3840x1600x32";

This enables users to get native resolution early boot graphics
instead of being limited to whatever GOP mode the UEFI firmware
provides by default (often 1024x768).
2026-01-15 11:29:08 -08:00
NAHO
a2ed7e8d88 nixos: remove optional builtins prefixes from prelude functions
Remove optional builtins prefixes from prelude functions by running:

    builtins=(
      abort
      baseNameOf
      break
      derivation
      derivationStrict
      dirOf
      false
      fetchGit
      fetchMercurial
      fetchTarball
      fetchTree
      fromTOML
      import
      isNull
      map
      null
      placeholder
      removeAttrs
      scopedImport
      throw
      toString
      true
    )

    fd \
      --exclude doc/manual/release-notes \
      --type file \
      . \
      nixos \
      --exec-batch sed --in-place --regexp-extended "
        s/\<builtins\.($(
          printf '%s\n' "${builtins[@]}" |
            paste --delimiter '|' --serial -
        ))\>/\1/g
      "

    nix fmt
2026-01-15 16:07:55 +01:00
Steven Allen
3e126bfbb8 nixos/systemd-networkd: Add missing UseSIP option to DHCPv6 2026-01-15 06:56:57 -08:00
Steven Allen
05c7d124f3 nixos/systemd-networkd: Add missing UseRetransmissionTime option 2026-01-14 13:12:50 -08:00
Steven Allen
d6a9c47e0f nixos/systemd-networkd: Add missing UseReachableTime option 2026-01-14 13:11:58 -08:00
Steven Allen
29b777151e nixos/systemd-networkd: Add missing UseHopLimit option 2026-01-14 13:10:32 -08:00
Steven Allen
59d0fa5528 nixos/systemd-networkd: Add missing UseDNR option 2026-01-14 13:08:27 -08:00
Steven Allen
4fb5d816d1 nixos/systemd-networkd: Add missing UseRedirect option 2026-01-14 13:05:17 -08:00
Steven Allen
09ca9cdb0c nixos/systemd-networkd: Add missing UseCaptivePortal option 2026-01-14 13:05:00 -08:00
Sandro
23cbe0fdc9 nixos/services.resolved: Move to systemd tooling (#416720) 2026-01-14 06:44:50 +00:00
Ryan Hendrickson
7eed65b9c8 nixos/logind: remove redundant unit
dbus-org.freedesktop.portable1.service is already included in
nixos/modules/system/boot/systemd.nix.
2026-01-13 19:18:46 -05:00