nixos-config/modules/nginx-proxy-manager/default.nix

33 lines
645 B
Nix
Raw Normal View History

{ pkgs
, config
, lib
, ...
2022-03-01 22:19:03 +01:00
}:
with lib; let
cfg = config.eboskma.nginx-proxy-manager;
in
{
options.eboskma.nginx-proxy-manager = { enable = mkEnableOption "Nginx Proxy Manager"; };
2022-01-24 11:14:34 +01:00
2022-05-03 18:17:38 +02:00
config = mkIf cfg.enable {
2022-01-24 11:14:34 +01:00
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"
"2222:2222"
2022-01-24 11:14:34 +01:00
];
volumes = [
"/var/lib/npm/data:/data"
"letsencrypt:/etc/letsencrypt"
];
};
};
};
}