Explore providing a NixOS module for one-option Rein setup

Open
#440 6 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

@SYED-IRTEZA-HUSSAIN-RIZVI is already working on this.

Since Nov 12, 2026.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
nixos, typescript

Research direction

Start by inspecting the Rein flake and its existing Linux startup, uinput, PipeWire, portal, and firewall setup; the issue does not name specific files or tests. Decide whether the graphical-session requirements support a system service or need a per-user model, and document the security and desktop environment trade-offs. Done means a recommended design and, if practical, a NixOS module with configurable options and clear manual setup steps.

Written by the indexing model from the issue text.

Description

documentation enhancement

Explore exporting a NixOS module from the Rein flake so users can enable Rein declaratively, ideally with a single option:

services.rein.enable = true;

Users would add Rein as a flake input and import its NixOS module once. Enabling the option should handle as much of the required system setup as reasonably possible.

Potential scope

  • Install Rein and its runtime dependencies.
  • Configure Linux uinput support and device permissions.
  • Avoid requiring users to replace a placeholder username in the configuration.
  • Configure the necessary firewall ports: TCP 3000 and UDP 4000–4050, with options to customize or disable the rules.
  • Provide appropriate service and startup integration.

Questions to investigate

  • Should the flake export nixosModules.default and define services.rein.enable?
  • Should Rein run as a system service, a per-user service, or another model, given its interaction with the logged-in graphical session?
  • How can access to /dev/uinput be configured without hardcoding a username while avoiding unnecessarily broad permissions?
  • Which PipeWire and XDG Desktop Portal requirements can be configured automatically, and which depend on the user's desktop environment?
  • Which firewall rules should be enabled by default, and how should network exposure be documented?

Expected outcome

Determine a recommended design and, if practical, implement a NixOS module that makes installation and setup largely declarative.

Document any unavoidable manual steps, graphical-session limitations, security trade-offs, and configurable options.

This is an exploratory issue; the final interface and default behavior should follow the findings.

Dominant language
TypeScript
Stars
55
Forks
120
Avg merge
4d 5h
Merged PRs (30d)
24

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AOSSIE-Org/Rein

All issues in AOSSIE-Org/Rein

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.