🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
1 messages
1 total messages Started by aszlig Mon, 16 Nov 2026 17:40
Bug#1154179: Package creates /var/empty
#4758
Author: aszlig
Date: Mon, 16 Nov 2026 17:40
31 lines
2587 bytes
Package: nix-setup-systemd
Version: 2.35.4+dfsg-1

Good morning :)

I just stumbled over the following command in postinst[1]:

  useradd --system \
    --comment "Nix build user $n" \
    --home-dir /var/empty \
    --gid nixbld --groups nixbld \
    --no-user-group \
    --shell "$(which nologin)" \
    nixbld$n

I believe this should be --no-create-home and use a --home-dir of /nonexistent.

According to <https://www.debian.org/doc/debian-policy/ch-opersys.html#non-existent-home-directories>:

> The canonical non-existent home directory is /nonexistent. Users who should
> not have a home directory should have their home directory set to this value.

On NixOS systems, /var/empty is generally guaranteed to be an empty and
immutable directory generally used for eg. setting up chroot/pivot_root, but I
believe on Debian systems /nonexistent should be used instead.

[1]: https://salsa.debian.org/debian/nix/-/blob/df63ca59eb0dce79a34aac6bde35bd5c81974327/debian/nix-setup-systemd.postinst#L27

Cheers,
-- 
aszlig
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads