22 lines
497 B
Nix
22 lines
497 B
Nix
{ config, lib, pkgs, ... }:
|
|
with lib;
|
|
let cfg = config.services.piped;
|
|
in {
|
|
options.services.piped = {
|
|
enable = mkEnableOption "piped";
|
|
|
|
frontend_domain = mkOption { type = types.str; };
|
|
backend_domain = mkOption { type = types.str; };
|
|
proxy_domain = mkOption { type = types.str; };
|
|
|
|
backend_port = mkOption {
|
|
type = types.number;
|
|
default = 3001;
|
|
};
|
|
};
|
|
|
|
config = (lib.mkIf cfg.enable) {
|
|
environment.systemPackages = with pkgs; [ piped-proxy ];
|
|
};
|
|
}
|