This commit is contained in:
Bryan Ramos 2024-03-01 15:49:38 -05:00
parent 1d52958cde
commit 974f185b00
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8
12 changed files with 168 additions and 7 deletions

View file

@ -0,0 +1,21 @@
{ lib, config, pkgs, ... }:
with lib;
let
cfg = config.modules.system.nginx;
in
{ options.modules.system.nginx = { enable = mkEnableOption "system.nginx"; };
config = mkIf cfg.enable {
imports = [ ./sites ];
security.acme = {
defaults = {
email = config.user.email;
};
};
services.nginx = {
enable = true;
package = pkgs.nginxMainLine;
};
};
}