843 Commits

Author SHA1 Message Date
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 https://github.com/systemd/systemd/commit/e6fc73350f9485064302e687b964f70b28b2e4f6
2026-07-11 22:32:57 +08: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 9bcbc7814a0b2a5515fdf6449c12a055712328d8)
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 8981bd36a7893b59577d0a4ae1de03f7a81e3609)
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 6c3ff740324716f92fba901032bd2511dd9af7f5)
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
nikstur dc6f2c134f systemd: add README
This establishes a repeatable and clear process for preparing and
testing changes to systemd. It should help existing maintainers to
follow a consistent process with clear judgment (when these tests pass,
the change is good to merge) and potential new maintainers.
2026-06-05 12:27:40 +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
nixpkgs-ci[bot] f64424d9a1 Merge staging-next into staging 2026-04-12 00:30:24 +00:00
nixpkgs-ci[bot] 63496be1d6 Merge master into staging-next 2026-04-12 00:29:50 +00:00
nikstur db6719e99e systemd: remove gnutar
systemd doesn't rely on tar anymore and instead uses libarchive for
this.
2026-04-12 00:35:01 +02:00
nikstur 4d636a2c3e systemd: remove unused inputs 2026-04-12 00:35:00 +02:00
nikstur 74082163b3 systemd: reflow patches
We merged the other PR without reflowing the patches to make reviewing
and rebasing easier. Reflow the patches now so that they are consistent again.
2026-04-11 15:20:57 +02:00
Sam Pointon 9d72eaf421 systemd: passthru withLogind 2026-04-11 14:11:47 +01:00
nikstur 6e92ac9c58 systemd: drop 0017-meson-Don-t-link-ssh-dropins.patch 2026-04-10 00:38:54 +02:00
nikstur 8b5d4b743c systemd: drop 0016-systemctl-edit-suggest-systemdctl-edit-runtime-on-sy.patch
This is entirely a "usability" patch which as per the new patch policy
is not allowed.
2026-04-10 00:38:53 +02:00
nikstur ab1dc94dd3 systemd: drop 0015-tpm2_context_init-fix-driver-name-checking.patch
This was fixed when we switched to patching dlopen.
2026-04-10 00:38:53 +02:00
nikstur e73170e38a systemd: drop 0013-inherit-systemd-environment-when-calling-generators.patch
This is possibile because of the preparations from 4aae99b7d7
2026-04-10 00:38:53 +02:00
nikstur 4f2d03b91a systemd: drop 0011-systemd-sleep-execute-scripts-in-etc-systemd-system-.patch
Instead set this variable via CFLAGS.
2026-04-10 00:38:53 +02:00
nikstur cdc746ff13 systemd: drop 0010-systemd-shutdown-execute-scripts-in-etc-systemd-syst.patch
Instead set this variable via CFLAGS.
2026-04-10 00:38:53 +02:00
nikstur c2b2ba8274 systemd: drop 0008-localectl-use-etc-X11-xkb-for-list-x11.patch
This can now configured via an environment variable.
2026-04-10 00:38:52 +02:00
nikstur 84cc9d4636 systemd: drop 0006-hostnamed-localed-timedated-disable-methods-that-cha.patch
This is entirely a "usability" patch which as per the new patch policy
is not allowed.

Additionally, this prohibits valid uses cases (dynamically changing some
parts of the system even if it's configured declaratively).
2026-04-10 00:38:52 +02:00
nikstur d02b5e8de4 systemd: drop 0005-Get-rid-of-a-useless-message-in-user-sessions.patch
This is entirely a "usability" patch which as per the new patch policy
is not allowed.

It's value even in the best of times is quite questionable and it's
unclear whether it has done anything in recent years.
2026-04-10 00:38:52 +02:00
nikstur a9bf6722ae systemd: drop 0004-Add-some-NixOS-specific-unit-directories.patch
This patch adds new functionality to systemd, which as per the new patch
policy is not allowed.

The main use-case this supports (imperatively installing systemd
services) is not used as far as I can tell and is not something we want
to support. Most services do not run anyways without further adjustments
on NixOS.
2026-04-10 00:38:51 +02:00
nikstur 207fe325e9 systemd: drop 0003-Fix-NixOS-containers.patch
This is possibile because of the preparations from b9f2fa1c7d
2026-04-10 00:38:51 +02:00
nikstur b5611f96b6 systemd: drop 0001-Start-device-units-for-uninitialised-encrypted-devic.patch
This is possibile because of the preparations from b13891782f
2026-04-10 00:38:51 +02:00
nikstur 4346b3bf84 systemd: add patch policy 2026-04-10 00:38:51 +02:00