27 lines
604 B
Nix
27 lines
604 B
Nix
{ config, lib, ... }: {
|
|
|
|
options.sysconfig.opts.virtualization.traefik.enable = lib.options.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
};
|
|
|
|
config = lib.mkIf config.sysconfig.opts.virtualization.traefik.enable {
|
|
|
|
services.traefik = {
|
|
|
|
enable = true;
|
|
|
|
staticConfigOpts = {
|
|
entryPoints = {
|
|
web = {};
|
|
websecure = {};
|
|
log = {};
|
|
certificatesResolvers
|
|
};
|
|
};
|
|
|
|
dynamicConfigOpts = {};
|
|
};
|
|
};
|
|
}
|