24 lines
850 B
Nix
24 lines
850 B
Nix
|
{pkgs, lib, ...}: {
|
||
|
services.pufferpanel = let
|
||
|
secrets = import ../common/secrets.nix;
|
||
|
in {
|
||
|
enable = true;
|
||
|
environment = {
|
||
|
PUFFER_WEB_HOST = ":5010";
|
||
|
PUFFER_PANEL_SETTINGS_MASTERURL = "https://panel.${secrets.jimDomain}";
|
||
|
PUFFER_PANEL_EMAIL_PROVIDER = "smtp";
|
||
|
PUFFER_PANEL_EMAIL_HOST = "mx.${secrets.jimDomain}:587";
|
||
|
PUFFER_PANEL_EMAIL_FROM = "noreply@${secrets.jimDomain}";
|
||
|
PUFFER_PANEL_EMAIL_USERNAME = "noreply@${secrets.jimDomain}";
|
||
|
PUFFER_PANEL_EMAIL_PASSWORD = secrets.noreplyPassword;
|
||
|
};
|
||
|
extraPackages = with pkgs; [ bash curl gawk gnutar gzip ];
|
||
|
package = pkgs.buildFHSEnv {
|
||
|
name = "pufferpanel-fhs";
|
||
|
meta.mainProgram = "pufferpanel-fhs";
|
||
|
runScript = lib.getExe pkgs.pufferpanel;
|
||
|
targetPkgs = pkgs': with pkgs'; [ icu openssl zlib ];
|
||
|
};
|
||
|
};
|
||
|
}
|