Skip to content

fix(enter): Fix running systemd tmpfiles with no users or groups#153

Merged
water-sucks merged 1 commit intonix-community:mainfrom
Sporif:enter-fix-systemd-tmpfiles-no-users
Jan 22, 2026
Merged

fix(enter): Fix running systemd tmpfiles with no users or groups#153
water-sucks merged 1 commit intonix-community:mainfrom
Sporif:enter-fix-systemd-tmpfiles-no-users

Conversation

@Sporif
Copy link
Copy Markdown
Collaborator

@Sporif Sporif commented Jan 22, 2026

When a system configuration has userborn or sysusers enabled, the activation script does not create users or groups.
This causes the systemd-tmpfiles command in nixos enter to fail, due to configuration lines with unknown users or groups . In the original nixos-enter, errors from systemd-tmpfiles are ignored. But if we add the --graceful flag, then systemd-tmpfiles will itself ignore unknown users or groups and exit successfully. Also, the original reason for ignoring the errors, the "failed to replace specifiers" error, does not seem to ever trigger. So I think we can stop silencing the systemd-tmpfiles command as well.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Jan 22, 2026

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@water-sucks water-sucks merged commit f7fd78e into nix-community:main Jan 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants