24 lines
318 B
Nix
24 lines
318 B
Nix
# Module: roles/webserver
|
|
# Enables the usage of a webserver with traefik and web services
|
|
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
pkgsUnstable,
|
|
inputs,
|
|
...
|
|
}:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.webserver;
|
|
in
|
|
{
|
|
options.webserver = {
|
|
enable = mkEnableOption "Enables webserver role";
|
|
};
|
|
|
|
config = mkIf cfg.enable { };
|
|
}
|