Add NixOS module for payjoin-mailroom#1366
Merged
spacebear21 merged 1 commit intopayjoin:masterfrom Mar 2, 2026
Merged
Conversation
Expose a nixosModules.payjoin-mailroom flake output that provides a systemd service. Operators declare settings as native Nix attrsets (serialized to TOML), keep secrets in an environment file, and get DynamicUser, state persistence, and auto-start on boot out of the box.
benalleng
approved these changes
Mar 1, 2026
Collaborator
There was a problem hiding this comment.
TACK adcbab0 built with a minimal flake on a test nixos machine.
# /etc/nixos/flake.nix
{
description = "Payjoin-mailroom test flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
rust-payjoin = {
url = "github:spacebear21/rust-payjoin/payjoin-mailroom-nixos-module";
};
};
outputs = { self, nixpkgs, rust-payjoin, ... }: {
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
modules = [
rust-payjoin.nixosModules.payjoin-mailroom
./configuration.nix
];
};
};
}
I did not add any flags or specific configs. I only confirmed that I could see the payjojn-mailroom as enabled in the systemctl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Expose a nixosModules.payjoin-mailroom flake output that provides a systemd service. Operators declare settings as native Nix attrsets (serialized to TOML), keep secrets in an environment file, and get DynamicUser, state persistence, and auto-start on boot out of the box.
Disclosure: co-authored by Claude Code
Another disclosure: I don't run nixOS so can't validate that this works as intended
Pull Request Checklist
Please confirm the following before requesting review:
AI
in the body of this PR.