Opinionated NixOS flake for single-admin homelab environments that typically repeatedly deal with reverse proxy, authentication/authorization, runtime secrets, backups, monitoring and notifications.
Example:
{ config, ... }:
{
selfhost = {
ingress.domain = "home.example.com";
ingress.traefik.enable = true; # reverse proxy + TLS
auth.oidc.pocket-id.enable = true; # SSO (OIDC)
auth.forwardAuth.tinyauth.enable = true; # forward-auth gateway
notify.ntfy.enable = true; # notifications
monitoring.enable = true; # metrics + alerting
apps.miniflux = {
enable = true;
port = 8081; # Register route from `miniflux.home.example.com` to 127.0.1:8081
healthcheck.path = "/healthcheck";
access.model = "oidc";
integrations.homepage.enable = true;
integrations.monitoring.enable = true;
};
};
}For more info check the docs, including the set of bundled services via selfhost.apps.<name>.enable.
I created to support my own homelab and learn more about self-hosting. It is open by design and if this project intrigues and interests you let me know!
Note
For a more different yet mature approach, consider nix-podman-stacks.
Warning
Work in progress. Highly experimental. Will consider a proper release during next NixOS release.
- Public Exposure: the how will vary from case-to-case. At the end, it has to be an informed and deliberate choice considering the risks.
- Containers: makes networking tricky at times between nixpkgs services and containers.
I don't expect anything back but if it saved you time and you feel like it, buy me a coffee ☕
I drive the architecture, the design, and the scope. AI has been invaluable to learn and iterate faster. I still take pride in giving my own voice to documentation and tweaking code by hand.
MIT