Commit Graph

3816 Commits

Author SHA1 Message Date
Will Fancher
a238afedfe nixos/systemd/initrd: Check MODULES accurately (#512636) 2026-05-22 16:46:13 +00:00
Jamie Magee
0522a75d35 nixos/systemd/user: migrate to RFC 42-style settings
Replace `systemd.user.extraConfig` with a freeform `systemd.user.settings.Manager` submodule, rendered via `utils.systemdUtils.lib.settingsToSections`. `extraConfig` is removed via `mkRemovedOptionModule`. Mirrors the existing `systemd.settings.Manager` migration of the system-side manager.

Updates the two in-tree consumers (`nixos/modules/testing/test-instrumentation.nix` and `nixos/tests/systemd.nix`) to the new option.

Adds `nixos/tests/systemd-user-settings` to assert the rendered `user.conf` contents.
2026-05-19 19:27:58 -07:00
Jamie Magee
4959eee3f3 nixos/systemd/user: drop with lib;
Drop the `with utils;`, `with systemdUtils.unitOptions;` and `with lib;` blocks and qualify all references with `lib.`, `utils.systemdUtils.lib.` and `utils.systemdUtils.types.` instead. No behavioural change.
2026-05-19 19:27:16 -07:00
Jamie Magee
29d672498f nixos/timesyncd: drop with lib;
Prefix `lib.` on `mkOption`, `mkIf`, `types.*`, `literalExpression`, `optionalString` and `concatStringsSep` so the module no longer relies on `with lib;`. No behavioural change.
2026-05-19 19:24:25 -07:00
nixpkgs-ci[bot]
42e06c8075 Merge master into staging-next 2026-05-19 13:06:20 +00:00
nikstur
6f0967e095 nixos/etc-overlay: replace pkgs.move-mount-beneath with mount, move-mount-beneath: drop (#515304) 2026-05-19 08:34:09 +00:00
Leona Maroni
7f5de51777 [staging-next] nixos/system: fix build with structuredAttrs (#521677) 2026-05-19 07:53:09 +00:00
André Lima
a8ec955f87 nixos/system/activation: write all extra dependencies with structuredAttrs
Assisted-by: Codex GPT 5.4 <noreply@openai.com>
2026-05-19 01:51:45 +01:00
André Lima
7ce134a4a9 nixos/system/boot/kernel: write all kernelParams with structuredAttrs 2026-05-19 01:45:38 +01:00
nixpkgs-ci[bot]
157cee1df3 Merge master into staging-next 2026-05-19 00:43:21 +00:00
nikstur
109a45bf44 nixos/systemd/tpm2: add pcrphase services (#491564) 2026-05-18 22:16:03 +00:00
K900
400721188b Merge remote-tracking branch 'origin/master' into staging-next 2026-05-18 23:32:26 +03:00
John Ericson
e8cb7e07c9 clevis: build and wrap clevis-luks-askpass and add boot.initrd.clevisLuksAskpass module (#491919) 2026-05-18 16:23:48 +00:00
Will Fancher
1ef6095684 nixos: Remove inaccurate systemd stage 1 TODO comments (#521429) 2026-05-18 14:19:49 +00:00
K900
877385b045 Merge remote-tracking branch 'origin/master' into staging-next 2026-05-18 16:19:13 +03:00
Alyssa Ross
9488f36f15 nixos/i18n: fix eval for non-glibc systems (e.g. musl) (#514825) 2026-05-18 09:42:55 +00:00
Will Fancher
36bdd45b13 nixos: Remove inaccurate systemd stage 1 TODO comments
- `gpgSupport` and `yubikeySupport` won't be supported
- `fileSystems.<name>.encrypted` actually already works correctly
2026-05-17 23:46:44 -04:00
K900
5ffead08ce Merge remote-tracking branch 'origin/master' into staging-next 2026-05-14 19:08:41 +03:00
Arian van Putten
f9f6b4211d Add soft-reboot.target and systemd-soft-reboot.service (#514100) 2026-05-14 07:53:46 +00:00
Ramses
5d8dc420a0 nixos/etc: clear stale opaque markers from mutable overlay upperdir (#507963) 2026-05-13 16:36:09 +00:00
K900
a3ae4cdd64 Merge remote-tracking branch 'origin/master' into staging-next 2026-05-08 15:37:25 +03:00
Sizhe Zhao
77d60beab2 nixos/limine: fix option_from_config to use yes/no values (#517900) 2026-05-08 10:15:37 +00:00
nixpkgs-ci[bot]
29eed599a9 Merge master into staging-next 2026-05-08 08:38:31 +00:00
Ryan Omasta
94a009f821 nixos/limine: fix option_from_config to use yes/no values 2026-05-07 21:05:54 -06:00
Colin
cce4239d68 nixos/i18n: fix eval for non-glibc systems (e.g. musl)
`pkgs.glibcLocales` is null for musl systems, so
`options.i18n.glibcLocales` needs to also be nullable.
otherwise, the `.override` and subsequence path interpolations
fail for non-gnu systems.
2026-05-07 17:35:58 +00:00
Lương Việt Hoàng
35fb2e4ac0 nixos/etc-overlay: replace pkgs.move-mount-beneath with mount
As of util-linux v2.42, we can use `mount` to move mounts beneath.
2026-05-07 21:33:09 +07:00
Cryolitia PukNgae
a9803c7378 nixos/kernel: only link initrd when enabled
Avoid creating the initrd symlink for configurations with
boot.initrd.enable = false.
2026-05-07 15:52:39 +08:00
Jörg Thalheim
c5e6f5caf8 nixos/i18n: allow imperative locale management via localectl (#502971) 2026-05-05 16:10:15 +00:00
nixpkgs-ci[bot]
10950ef1da Merge staging-next into staging 2026-05-05 00:36:02 +00:00
K900
cd9a5eeafb Merge remote-tracking branch 'origin/staging-next' into staging 2026-05-04 21:37:41 +03:00
nixpkgs-ci[bot]
1debf4679f Merge master into staging-nixos 2026-05-04 18:34:56 +00:00
Jamie Magee
ab076fc22d nixos/coredump: migrate to RFC 42-style settings
Replace the free-form `systemd.coredump.extraConfig` option with a structured `systemd.coredump.settings.Coredump` submodule rendered via `utils.systemdUtils.lib.settingsToSections`, in line with RFC 42. A `mkRemovedOptionModule` entry points existing users at the new option, and the systemd-coredump NixOS test now exercises the new settings option by asserting the rendered `coredump.conf` contents.
2026-05-04 08:59:40 -07:00
Robert Hensing
04b6aa5544 nixos/*: remove unused let bindings (#515686) 2026-05-04 13:12:07 +00:00
Kajus Naujokaitis
bc2562685c nixos/i18n: allow imperative locale management via localectl
Signed-off-by: Kajus Naujokaitis <kajusn@gmail.com>
2026-05-04 12:59:10 +03:00
Jamie Magee
b3a443cd89 nixos/coredump: drop with lib;
Prefix `lib.` on `mkOption`, `types`, `mkIf`, `mkMerge` and `mkDefault` so the module no longer relies on `with lib;`. No behavioural change.
2026-05-03 19:15:16 -07:00
nixpkgs-ci[bot]
6b137cf3f4 Merge staging-next into staging 2026-05-03 06:53:20 +00:00
Ryan Omasta
833fe2d511 nixos/limine: add helpColor and helpColorBright options 2026-05-02 14:30:55 -06:00
Michael Daniels
2e87c2f8f4 nixos/*: remove unused let bindings
Generated using deadnix (with some manual work); split from #514611.
2026-05-01 20:39:14 -04:00
programmerlexi
027454c0ee nixos/limine: fix secure boot key generation when using impermanence 2026-04-29 17:48:42 +02:00
nixpkgs-ci[bot]
9c69dd170d Merge staging-next into staging 2026-04-28 00:37:06 +00:00
Kevin Cotrone
b5cb2cc43f clevis: add boot.initrd.clevisLuksAskpass module
Enable upstream clevis-luks-askpass systemd units in initrd for
automatic LUKS unlocking using clevis bindings stored in LUKS headers.
2026-04-27 17:25:25 -07:00
Ramses
574b3df77b nixos/resolvconf: Enable by default (#512584) 2026-04-27 21:16:17 +00:00
Lucas Savva
b403014e4f nixos/resolvconf: Enable by default
Fixes #353225

The value of `networking.resolvconf.enable` was previously
predicated on the existence `environment.etc."resolv.conf"`.
This could lead to infinite recursion when an attribute defined
within the resolvconf module was also required to define
`environment.etc` (see example below).

Instead, set the default to an explicit true and set the value to
false where required in-tree. This turns out to only be two places:
systemd-resolved and tetrd.

Example infrec (from building .#nixosTests.containers-hosts):

```
       … while evaluating definitions from `/nix/store/5djjm1dipmdh82issrmpfjdplp7hk0pp-source/nixos/modules/services/logging/logrotate.nix':

       … while evaluating the option `containers.netmask.services.logrotate.enable':

       … while evaluating the option `containers.netmask.users.groups':

       … while evaluating definitions from `/nix/store/5djjm1dipmdh82issrmpfjdplp7hk0pp-source/nixos/modules/config/resolvconf.nix':

       … while evaluating the option `containers.netmask.networking.resolvconf.enable':

       … while evaluating the option `containers.netmask.environment.etc':

       … while evaluating definitions from `/nix/store/5djjm1dipmdh82issrmpfjdplp7hk0pp-source/nixos/modules/services/logging/logrotate.nix':

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: infinite recursion encountered
       at /nix/store/5djjm1dipmdh82issrmpfjdplp7hk0pp-source/lib/modules.nix:1512:13:
         1511|     _type = "if";
         1512|     inherit condition content;
             |             ^
         1513|   };
```
2026-04-27 21:53:27 +01:00
Hadi Chokr
9c6c7af4b8 nixos/systemd: install soft-reboot units
Allows running systemctl soft-reboot, to only reboot userspace not full reboot with the kernel included.

Signed-off-by: Hadi Chokr <hadichokr@icloud.com>
2026-04-27 18:57:59 +02:00
nixpkgs-ci[bot]
3897d11ea5 Merge staging-next into staging 2026-04-26 18:16:05 +00:00
Florian Klink
af59f21843 nixos/systemd-networkd: add new options for v260 (#513521) 2026-04-26 12:26:37 +00:00
nixpkgs-ci[bot]
b23e6c6674 Merge staging-next into staging 2026-04-26 12:16:51 +00:00
Florian Klink
fbebe4cdf5 nixos/systemd-networkd: Allow three value variant in ipv6AcceptRAConfig.RouteMetric option (#507540) 2026-04-26 11:55:37 +00:00
Sizhe Zhao
6ddf0da9fb limine: 11.4.1 -> 12.0.2, nixos/limine: update (#513561) 2026-04-26 08:22:50 +00:00
Sizhe Zhao
bea3efecfa nixos/limine: disable editor for secure boot 2026-04-26 10:51:51 +08:00