From 1d585f14a4981b0a207a878411a04ae24e47925b Mon Sep 17 00:00:00 2001 From: Kiana Sheibani Date: Fri, 26 Jul 2024 23:46:27 -0400 Subject: [PATCH] refactor: remove unnecessary nginx module --- modules/default.nix | 1 - modules/forgejo.nix | 1 + modules/nginx.nix | 4 ---- 3 files changed, 1 insertion(+), 5 deletions(-) delete mode 100644 modules/nginx.nix diff --git a/modules/default.nix b/modules/default.nix index 0c6d059..d5b43c3 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -4,6 +4,5 @@ ./acme.nix ./fail2ban.nix ./forgejo.nix - ./nginx.nix ]; } diff --git a/modules/forgejo.nix b/modules/forgejo.nix index dd0bd20..8796cdc 100644 --- a/modules/forgejo.nix +++ b/modules/forgejo.nix @@ -3,6 +3,7 @@ let cfg = config.services.forgejo; srv = cfg.settings.server; in { + services.nginx.enable = true; services.nginx.virtualHosts.${srv.DOMAIN} = { forceSSL = true; enableACME = true; diff --git a/modules/nginx.nix b/modules/nginx.nix deleted file mode 100644 index 41197d8..0000000 --- a/modules/nginx.nix +++ /dev/null @@ -1,4 +0,0 @@ -{ ... }: -{ - services.nginx.enable = true; -}