28 lines
622 B
Nix
28 lines
622 B
Nix
{ pkgs, config, lib, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.eboskma.nginx-proxy-manager;
|
|
in
|
|
{
|
|
options.eboskma.nginx-proxy-manager = { enable = mkEnableOption "Nginx Proxy Manager"; };
|
|
|
|
config = mkIf (cfg.enable) {
|
|
eboskma.docker.enable = true;
|
|
|
|
virtualisation.oci-containers.containers = {
|
|
nginx-proxy-manager = {
|
|
autoStart = true;
|
|
image = "jc21/nginx-proxy-manager:latest";
|
|
ports = [
|
|
"80:80"
|
|
"81:81"
|
|
"443:443"
|
|
];
|
|
volumes = [
|
|
"/var/lib/npm/data:/data"
|
|
"letsencrypt:/etc/letsencrypt"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|