Skip to content

feat(nix): Add a NixOS module - #115

Open
CrumblyLiquid wants to merge 1 commit into
szaffarano:masterfrom
CrumblyLiquid:nix
Open

CrumblyLiquid wants to merge 1 commit into
szaffarano:masterfrom
CrumblyLiquid:nix

Conversation

@CrumblyLiquid

Copy link
Copy Markdown

This PR adds a module.nix file with the description of services.korrosync configuration.

If enabled it creates a korrosync systemd service.
It is configured with some hardening options (see systemd-analyze security korrosync.service).
In some ways it might be too restricting (such as setting umask to 0077 - forcing all created files/directories to be accessible only by the configured user)

@szaffarano

Copy link
Copy Markdown
Owner

hi! it loos good, do you want to move it to ready to review?
Thanks for your contrib!

@CrumblyLiquid

Copy link
Copy Markdown
Author

The systemd service config could probably be fine-tuned more but I don't have the time to look into that right now.
I'm also not a very advanced NixOS user so I'm not sure if the module is a quality Nix code.

If you think this is good enough then feel free to merge it. I've been using it for a bit now without issues so at least it works :D

@CrumblyLiquid
CrumblyLiquid marked this pull request as ready for review June 4, 2026 15:53
@shymega

shymega commented Sep 3, 2026

Copy link
Copy Markdown

Can we upstream this to Nixpkgs? I'd be happy to cherry-pick it into my PR for Nixpkgs here (NixOS/nixpkgs#559612), and attribute a Co-authored-by to you @CrumblyLiquid?

I think the module looks good as it is, and the systemd service looks very good. We just need to upstream it.

@CrumblyLiquid

Copy link
Copy Markdown
Author

Sure, go for it :)

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.

3 participants