nixpkgs/nixos/modules/system/boot/systemd
andre4ik3 216d98ab97
nixos/systemd-initrd: silence various warnings
Silences 2 warning messages that appear when using the systemd initrd:

1. "System tainted (var-run-bad)": occurs because `/var/run` isn't a
   symlink to `/run`. Fixed by making /run and linking /var/run to it.

2. "Failed to make /usr a mountpoint": occurs because ProtectSystem
   defaults to true in the initrd, which makes systemd try to remount
   `/usr` as read-only, which doesn't exist in the initrd. Fixed by
   linking `/usr/bin` and `/usr/sbin` to the initrd bin directories.

Also moves the `/tmp` creation from the initrd module to make-initrd-ng,
to avoid making an unnecessary `/tmp/.keep`, saving a store path and a
few bytes in the initrd image.
2025-08-16 00:28:13 +00:00
..
coredump.nix
dm-verity.nix
fido2.nix
homed.nix
initrd-secrets.nix
initrd.nix nixos/systemd-initrd: silence various warnings 2025-08-16 00:28:13 +00:00
journald-gateway.nix
journald-remote.nix
journald-upload.nix
journald.nix nixos/systemd: unconditional systemd-journald-audit.socket 2025-05-18 19:58:59 +00:00
logind.nix treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
nspawn.nix treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
oomd.nix modules/systemd-oomd: add After=systemd-sysusers.service 2025-07-11 15:13:25 +02:00
repart.nix treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
shutdown.nix treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
sysupdate.nix nixos/doc: convert links to manpages 2025-02-21 16:31:09 +01:00
sysusers.nix treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
tmpfiles.nix nixos/{tmpfiles, wrappers}: explicitly set RestrictSUIDSGID false (#426882) 2025-07-30 04:31:21 -04:00
tpm2.nix treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
user.nix treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
userdbd.nix