813 Commits

Author SHA1 Message Date
Sergei Trofimovich
7fc9f534e0 beekeeper-studio: fix runtimeDependencies.tests eval
Without the chnage the eval fails on `master` as:

```
$ NIXPKGS_ALLOW_INSECURE=1 nix build --no-link -f. beekeeper-studio.runtimeDependencies.tests
error:
       … while evaluating the attribute 'systemd-nspawn-configfile'
         at pkgs/os-specific/linux/systemd/default.nix:849:11:
          848|           systemd-nspawn
          849|           systemd-nspawn-configfile
             |           ^
          850|           systemd-oomd

       error: attribute 'systemd-nspawn-configfile' missing
       at pkgs/os-specific/linux/systemd/default.nix:849:11:
          848|           systemd-nspawn
          849|           systemd-nspawn-configfile
             |           ^
          850|           systemd-oomd
```
2026-10-26 21:10:51 +00:00
Will Fancher
7e8793b223 treewide: Remove nixos tests for scripted stage 1 2026-10-18 19:18:21 -04:00
nixpkgs-ci[bot]
600cbfc499 Merge master into staging-next 2026-10-16 00:21:37 +00:00
Grimmauld
94ed2f97d6 systemd{Libs,Minimal}: fix CPE identifier 2026-10-13 20:41:50 +02:00
Vladimír Čunát
7da3d10208 Merge branch 'staging-nixos' into staging-next 2026-10-11 05:46:03 +02:00
Maximilian Bosch
c3adfa486d systemd: work around rebuild count
Don't set meson flags for nsresourced/mountfsd to avoid rebuilds of
pkgs.systemd. Will be reverted on staging.

This gives 1840 rebuilds compare to upstream/master.
2026-10-08 11:34:23 +02:00
Raito Bezarius
7d634a56d8 systemd: add a NixOS test for nsresourced and mountfsd
Boot a VM with the default (kernel-BTF-backed) systemd and verify that the
BPF LSM is active, both sockets come up, nsresourced delegates a user
namespace, and mountfsd mounts a DDI via systemd-dissect. This is the runtime
counterpart to compiling the userns-restrict/restrict-fsaccess BPF programs
against the kernel's vmlinux.h.
2026-10-05 11:52:11 +02:00
Raito Bezarius
9ff5c76c8b systemd: add withNsresourced/withMountfsd options
These subsystems rely on the userns-restrict and restrict-fsaccess BPF
programs, which need a vmlinux.h, so default them to on only when a
kernel BTF is provided.
2026-10-05 11:52:11 +02:00
Raito Bezarius
63b2abad26 systemd: add a vmlinux-btf argument
When set, systemd is configured with -Dvmlinux-h=provided pointing at
the given vmlinux.h, which enables the BPF programs that need kernel
internal types (userns-restrict for nsresourced, sysctl-monitor, and
restrict-fsaccess for mountfsd).

Defaults to null, i.e. today's behaviour of skipping these features.
2026-10-05 11:52:11 +02:00
nikstur
87c5c533e6 systemd: 261.3 -> 262 2026-09-25 16:30:55 +02:00
Will Fancher
2bae9f4d18 systemd: 261.2 -> 261.3 2026-09-20 00:18:02 -04:00
Jörg Thalheim
78d301adc6 nixosTests.switchTest: split into parts to bound evaluation memory
All ~80 specialisations are full NixOS evaluations alive at once, so
switchTest alone peaked at ~17 GiB RSS. Split by subtest group; the
largest part now needs under 8 GiB. switchTest keeps its name for the
services part.
2026-08-29 16:35:44 +02:00
nixpkgs-ci[bot]
a3ddc3fe50 Merge master into staging-next 2026-08-23 18:04:32 +00:00
nikstur
2e4be0b447 systemd: remove container tests from passthru.nixosTests
The container tests need a specific Nix config that is not trivial to
enable and most importantly not enabled by default. Thus this test
doesn't belong in the standard test suite that we use as a merge gate.
2026-08-19 21:23:08 +02:00
nikstur
6af25922ad systemd: 261.1 -> 261.2 (#553196) 2026-08-19 16:17:45 +00:00
R. Ryantm
d065e27a70 systemd: 261.1 -> 261.2 2026-08-19 15:04:26 +02:00
Doron Behar
7dbc9d3a71 systemd: fix libfido2 buildInput not tracking withFido2 2026-08-16 03:20:13 +03:00
nikstur
98bc0ce41f systemds: re-enable tests that now work on master
These were previously commented out because they were broken on master
but now they work again.
2026-08-14 01:17:19 +02:00
Will Fancher
ba6c358aff systemd: 261 -> 261.1 (#540623) 2026-07-15 15:18:25 +00:00
dramforever
2a0fe99286 systemd: substituteInPlace --replace-fail everywhere
This will catch if any of these replacement targets gets moved around
again.
2026-07-11 22:33:05 +08:00
dramforever
94ff2f02a4 systemd: Fix path to find_program('clang', ...) replacement
Systemd 261 moved the location of this call, which means that this
replacement was lost, which broke cross compilation.

See e6fc73350f
2026-07-11 22:32:57 +08:00
R. Ryantm
35bc596317 systemd: 261 -> 261.1 2026-07-11 04:54:39 +00:00
Alyssa Ross
f352780c96 systemd: don't try to dlopen libintl.so.8 on musl 2026-06-28 11:18:18 +02:00
Alyssa Ross
9ea284ac3f systemd: add libucontext dependency for musl
Required for musl, unused otherwise.

Fixes: ccc474fdb4 ("systemd: v260.2 -> v261")
2026-06-28 10:36:57 +02:00
K900
caea65bc86 Merge remote-tracking branch 'origin/master' into staging-next 2026-06-27 17:13:58 +03:00
K900
dcd020a608 Merge remote-tracking branch 'origin/master' into staging-nixos 2026-06-26 10:34:05 +03:00
Raito Bezarius
1fc433dc51 nixos/systemd/repart: add Varlink socket
This enables the ability to use systemd-repart over Varlink at
/run/systemd/io.systemd.Repart.

Change-Id: Ia74fdf8c2cbc4ec52994ba8ceb5796acc731abd3
Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
2026-06-25 09:50:38 +02:00
nikstur
b6c4b911f0 systemd: disable repart-factory-reset test since it its broken upstream 2026-06-23 13:21:15 +02:00
nikstur
ccc474fdb4 systemd: v260.2 -> v261 2026-06-23 11:22:28 +02:00
r-vdp
2b7fc29323 systemd: drop upstreamed tmpfiles noatime patch
(cherry picked from commit 3dbcb86c1f)
(cherry picked from commit 9bcbc7814a)
2026-06-22 08:21:28 +02:00
R. Ryantm
8336ce2319 systemd: 260.1 -> 260.2
(cherry picked from commit d08a97a026)
(cherry picked from commit 8981bd36a7)
2026-06-22 08:21:28 +02:00
Paul Grandperrin
a7d2d596af systemd: fix tmpfiles errors when mount is noatime
fixes #520485

(cherry picked from commit d28f57cdff)
(cherry picked from commit 6c3ff74032)
2026-06-22 08:16:16 +02:00
nixpkgs-ci[bot]
143fd0b820 Merge staging-next into staging 2026-06-13 00:50:35 +00:00
Marc 'risson' Schmitt
69f0475533 systemdUkify: fix missing cryptography dependency
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
2026-06-12 19:37:34 +02:00
nixpkgs-ci[bot]
6d151c9ef3 Merge staging-next into staging 2026-06-07 18:29:16 +00:00
r-vdp
1e9305e346 systemd: re-enable systemd-initrd-luks-fido2 in passthru.tests 2026-06-07 15:05:55 +03:00
nixpkgs-ci[bot]
40cd11208d Merge staging-next into staging 2026-06-05 18:41:13 +00:00
nikstur
640c05e8f3 systemd: add passthru.nixosTests
Reorganize the passthru.tests to be able to comment out/disable
individual tests that were previously hidden in an attrset.

Also comment out tests that are currently broken on master. Once this is
merged, the tests in passthru.nixosTests serve as a hard quality gate
for merging changes to systemd as per the newly addded README that lives
next to the systemd derivation. These tests were only commented out
because I believe they are still valuable and should be fixed. However,
actually fixing them is out of scope for this change.

This removed the `installer-systemd-stage-1` tests because they were to
costly to evaluate and build for normal maintainers. We also don't have
all the other installer tests here. All tests use systemd, but we need
to balance the executability in a sensible timescale with test coverage.
2026-06-05 15:02:27 +02:00
r-vdp
3dbcb86c1f systemd: drop upstreamed tmpfiles noatime patch 2026-05-31 15:32:18 +03:00
R. Ryantm
d08a97a026 systemd: 260.1 -> 260.2 2026-05-31 15:32:17 +03:00
Paul Grandperrin
d28f57cdff systemd: fix tmpfiles errors when mount is noatime
fixes #520485
2026-05-26 21:21:06 +02:00
nixpkgs-ci[bot]
f2fcfe6487 Merge staging-next into staging 2026-05-07 12:39:44 +00:00
nikstur
74ebb9c069 systemdUkify: fix
This fix was necessary because systemd now requires the pefile module to
be present in the buildtime python installation.

However, this python is never used in the runtime of ukify. Thus this
change is only necessary to trick systemd's meson to do the right thing.

It doesn't seem like there is a right thing to do in meson for this so
it is unlikely that systemd would accept a patch for this.
2026-05-06 22:09:20 +02:00
Ryan Lahfa
4a19f7be9f systemd: simplify and lose ballast (#509324) 2026-04-18 23:46:49 +00:00
nikstur
89335953f8 systemd: remove superfluous postInstall
This is not needed because we already disable kernel-install via meson.
2026-04-19 01:32:02 +02:00
nikstur
a423c2b8b5 systemd: remove superfluous rm of rpm files
We disable building the rpm artifacts via meson. This was accidentally
left over and did nothing.
2026-04-19 01:32:02 +02:00
nikstur
1469456050 systemd: move ntp-server option to mesonOption
This was the only instance left that didn't use mesonOption.
2026-04-19 01:32:02 +02:00
nikstur
62bfb23a26 systemd: remove remaining binaryReplacements
These were only replaying paths in man pages or tests. Since we do not
run the tests (because they don't work yet on NixOS), this is just
maintenance churn without being useful.

Patching manpages is IMO also not useful because manpages that diverge
from their canonical form are more confusing than helpful.
2026-04-19 01:32:01 +02:00
nikstur
8a17f4b972 systemd: remove replacing modprobe
This path is already correctly overriden via the module system on
master and thus is unneeded.
2026-04-19 01:32:01 +02:00
nikstur
e316535719 systemd: remove gnupg dependency
gpg is read via PATH and thus doesn't need to be patched into the
systemd source. Instead, we can override it via the module system.
2026-04-19 01:31:42 +02:00