aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix15
1 files changed, 8 insertions, 7 deletions
diff --git a/flake.nix b/flake.nix
index 25e84ec..3efb804 100644
--- a/flake.nix
+++ b/flake.nix
@@ -83,14 +83,15 @@
};
};
- assertions = [
- {
- assertion = (cfg.sslCertificate == null) == (cfg.sslCertificateKey == null);
- message = "services.site: sslCertificate and sslCertificateKey must be set together.";
- }
- ];
-
config = mkIf cfg.enable {
+
+ assertions = [
+ {
+ assertion = (cfg.sslCertificate == null) == (cfg.sslCertificateKey == null);
+ message = "services.site: sslCertificate and sslCertificateKey must be set together.";
+ }
+ ];
+
services.nginx.enable = true;
services.nginx.virtualHosts.${cfg.domain} =