mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 08:39:42 -04:00
21 lines
404 B
Nix
21 lines
404 B
Nix
{ 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;
|
|
};
|
|
};
|
|
}
|