about summary refs log tree commit diff
path: root/users/wpcarro/nixos/modules/www/wpcarro.dev.nix
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2022-06-28T17·32-0700
committerclbot <clbot@tvl.fyi>2022-06-28T17·37+0000
commit6d99b93f1a45cff91f369dc7c53bdc724d68d092 (patch)
tree1fba73ff518d96c9f4b4d63afd6bd702866c3d66 /users/wpcarro/nixos/modules/www/wpcarro.dev.nix
parentab1984c8ac07fea86d1779956fd4f9ebfbb91b9e (diff)
feat(wpcarro/website): Support SSL certs for wpcarro.dev r/4264
This has been sloppy for awhile...

While I'm at it modularize some of my Nginx configuration.

Side note: might be time to decouple the Terraform provisioning stuffs from the
NixOS configuration, and this feels *too* tightly coupled.

Change-Id: Ida0da5462d938b956571321a67ba1f026fb0a7de
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5902
Reviewed-by: wpcarro <wpcarro@gmail.com>
Autosubmit: wpcarro <wpcarro@gmail.com>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/wpcarro/nixos/modules/www/wpcarro.dev.nix')
-rw-r--r--users/wpcarro/nixos/modules/www/wpcarro.dev.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/users/wpcarro/nixos/modules/www/wpcarro.dev.nix b/users/wpcarro/nixos/modules/www/wpcarro.dev.nix
new file mode 100644
index 000000000000..7c4af627edfd
--- /dev/null
+++ b/users/wpcarro/nixos/modules/www/wpcarro.dev.nix
@@ -0,0 +1,10 @@
+{ pkgs, ... }:
+
+{
+  config = {
+    services.nginx.virtualHosts."wpcarro.dev" = {
+      enableACME = true;
+      forceSSL = true;
+    };
+  };
+}