nixpkgs/nixos/tests/activation
r-vdp 3eaafe4d48
nixos/etc-overlay: ship empty /etc/machine-id on immutable /etc
The symlink to /var/lib/nixos/machine-id never persists the ID,
systemd-machine-id-commit.service requires a writable /etc, and
machine_id_commit() does not follow symlinks for its mountpoint check.
So the backing file stays "uninitialized", every boot is
ConditionFirstBoot=yes, and the machine-id is random per boot.

Ship an empty regular file instead, systemd then overlays /run/machine-id
for the session, ConditionFirstBoot is correctly "no", commit is
cleanly condition-skipped, and the file is a usable bind target for
users that want persistence.

Fixes #523878
2026-06-26 10:50:57 +02:00
..
bashless-closure.nix
bashless-image.nix
bashless.nix nixos/systemd/shutdown: make shutdown ramfs bashless 2025-10-14 10:14:43 +02:00
etc-overlay-immutable.nix nixos/etc-overlay: ship empty /etc/machine-id on immutable /etc 2026-06-26 10:50:57 +02:00
etc-overlay-mutable.nix nixos/etc: inline small regular files into the metadata erofs image 2026-05-31 23:46:03 +03:00
nix-channel.nix treewide: switch to channels.nixos.org 2025-11-17 23:41:39 +01:00
nixos-init.nix nixos/nixos-init: conflict with postBootCommands and powerUpCommands 2026-01-06 21:00:36 -05:00
perlless.nix
template-dropin.nix switch-to-configuration-ng: Stop drop-in template instances 2026-04-30 18:06:59 +02:00
var.nix