nixpkgs/nixos/modules/system/boot
phaer dd88db29ed modules/systemd-oomd: add After=systemd-sysusers.service
Before this change, systemd-oomd startup was flaky at least with
either systemd-sysusers or userborn enabled. It would restart several
times until users were provisioned, so that it finally succeeded.

An alternative would be to use a DynamicUser which was my first
approach, before I discovered that upstream added the after statement
in Dec 2024[1]. DynamicUsers could have further
implications (sandboxing, etc), so we follow upstream here.

It's not clear to me we why Upstreams "After=systemd-sysusers.service"
doesn't show up on nixos-unstable systems (systemd v257.6).

Userborn is covered, as its unit is aliased to systemd-sysusers.service.

The following test succeeded after this change on x86_64-linux:

  nix-build -A nixosTests.systemd-oomd

[1]: 36dd429680
2025-07-11 15:13:25 +02:00
..
loader limine-install: cleanup, improve type hinting (#416188) 2025-06-23 23:08:45 +05:30
systemd modules/systemd-oomd: add After=systemd-sysusers.service 2025-07-11 15:13:25 +02:00
binfmt.nix
clevis.md
clevis.nix nixos/clevis: fix clevis in scripted initrd 2025-05-25 01:34:06 +02:00
emergency-mode.nix emergencyMode, emergencyAccess: cross reference options in docs. 2025-05-24 14:01:22 +07:00
grow-partition.nix
initrd-network.nix
initrd-openvpn.nix
initrd-ssh.nix nixos/initrd-ssh: include sshd-auth binary in initrd 2025-05-05 17:23:47 +02:00
kernel.nix lib.types.attrNamesToTrue: unpublish temporarily 2025-05-16 11:52:36 +02:00
kernel_config.nix
kexec.nix
luksroot.nix
modprobe.nix lib.types.attrNamesToTrue: unpublish temporarily 2025-05-16 11:52:36 +02:00
networkd.nix nixos/networkd: update valid KeepConfiguration values (#395621) 2025-06-05 16:17:48 -07:00
nix-store-veritysetup.nix nixos/nix-store-veritysetup: init 2025-06-16 10:28:53 +02:00
pbkdf2-sha512.c
plymouth.nix
resolved.nix
shutdown.nix
stage-1-init.sh nixos/stage-1.init.sh: only remount bind fsType 2025-05-30 12:13:13 +05:30
stage-1.nix nixos/stage-1: fix option path in message 2025-07-03 17:54:49 +02:00
stage-2-init.sh nixos/stage-2-init: support nosuid/nodev mount options for /nix/store 2025-05-18 12:07:10 +02:00
stage-2.nix nixos/stage-2-init: remove 'readOnlyNixStore' option 2025-05-18 12:08:03 +02:00
stratisroot.nix
systemd.nix nixos/systemd: clarify what enableStrictShellChecks checks (#401460) 2025-04-27 14:15:15 +02:00
timesyncd.nix
tmp.nix nixos/boot/tmp: introduce adaptive huge memory pages 2025-05-05 22:52:02 +00:00
uki.nix
unl0kr.nix nixos/unl0kr: fix touchpads 2025-05-09 00:29:43 +02:00
uvesafb.nix
zram-as-tmp.nix nixos/boot: add boot.tmp.useZram options 2025-05-24 23:01:41 +08:00