Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flake for NixOS servers support #41

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jim3692
Copy link

@jim3692 jim3692 commented Jun 6, 2024

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
	};
}

description = "Reverse proxy you would like to use (either caddy or nginx)";
type = types.str;
};

Copy link
Member

@Bnyro Bnyro Jan 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
httpmode= mkOption {
description = "HTTP mode to access your instance (either http or https)";
type = types.str;
};

was added recently, thus that buildscript wouldn't work anymore

Copy link
Member

@Bnyro Bnyro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks good, if you're willing to update it to be compatible/working with the latest Piped version I think that should be good to merge.

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.

2 participants