Skip to content

Add custom system-manager module#167

Draft
sjmonson wants to merge 2 commits intoDeterminateSystems:mainfrom
sjmonson:feat/system-manager-support
Draft

Add custom system-manager module#167
sjmonson wants to merge 2 commits intoDeterminateSystems:mainfrom
sjmonson:feat/system-manager-support

Conversation

@sjmonson
Copy link

@sjmonson sjmonson commented Mar 7, 2026

system-manager is a framework for getting a NixOS like experience on non-NixOS Linux systems. System-manager enables a subset of NixOS modules which currently does not include nix.registry or any management of the system-wide Nix version. This PR adds a module that re-implements some of the missing functionality with some caveats.

Bootstrapping Nix

There is a chicken vs egg problem with respect to bootstrapping the nix-daemon. The best way to solve this is to:

  1. Install nix with the determinate nix-installer
  2. Run system-manager switch with this module enabled and confirm it attempts to replace service/sockets
  3. Delete the Nix service/sockets but do not reload systemd
  4. Rerun system-manager switch

SELinux

SELinux is currently not supported by system-manager, though there is a hacky workaround.

nixbld User Management

The nixbld users are currently not implemented in this module. system-manager does offer user management; however due to the bootstrapping issue the users will already be available and managing them seems like an unnecessary complication.

@coderabbitai
Copy link

coderabbitai bot commented Mar 7, 2026

Important

Review skipped

Draft detected.

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.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: ac660df9-5192-4d21-8e0b-e60e300fb08b

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

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

@sjmonson sjmonson force-pushed the feat/system-manager-support branch from 89cdc88 to 91dc6e5 Compare March 7, 2026 20:05
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.

1 participant