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; enable = true;
password = my.secrets.nextcloud.password; password = my.secrets.nextcloud.password;
}; };
nginx = {
enable = true;
};
# The whole *arr software suite # The whole *arr software suite
pirate.enable = true; pirate.enable = true;
# Podcast automatic downloader # Podcast automatic downloader

View file

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