TeamPiped / Piped-Docker

MIT License
47 stars 35 forks source link

Add flake for NixOS servers support #41

Open jim3692 opened 5 months ago

jim3692 commented 5 months ago

This a NixOS wrapper around the installation script for easier integration on NixOS servers.

It runs Docker Compose as a systemd service and exposes the CLI configuration options as nix options, ex:

{ ... }: {
    piped = {
        frontend = "piped.kavin.rocks";
        backend = "pipedapi.kavin.rocks";
        proxy = "pipedproxy.kavin.rocks";
        reverseproxy = "caddy";
    };
}

It also exposes some additional options:

{ ... }: {
    piped = {
        httpPort = 80; # Default
        httpsPort = 443; # Default
        dataDir = "/var/lib/piped"; # Default
    };
}