modules: services: nginx: enable explicitly

This commit is contained in:
Bruno BELANYI 2021-08-30 15:37:31 +02:00
parent 878759cb77
commit 52079bf1e7
2 changed files with 4 additions and 4 deletions

View file

@ -90,6 +90,9 @@ in
enable = true;
password = my.secrets.nextcloud.password;
};
nginx = {
enable = true;
};
# The whole *arr software suite
pirate.enable = true;
# Podcast automatic downloader

View file

@ -54,10 +54,7 @@ let
in
{
options.my.services.nginx = with lib; {
enable =
mkEnableOption "Nginx, activates when `virtualHosts` is not empty" // {
default = builtins.length cfg.virtualHosts != 0;
};
enable = mkEnableOption "Nginx";
monitoring = {
enable = my.mkDisableOption "monitoring through grafana and prometheus";