From e90ebf622006688044f6be84e93513f7cfad829c Mon Sep 17 00:00:00 2001 From: LavaDesu Date: Sat, 5 Apr 2025 14:17:51 +1100 Subject: [PATCH] hosts/hazel: enable https --- hosts/hazel/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hosts/hazel/default.nix b/hosts/hazel/default.nix index 1904423..a36bc67 100644 --- a/hosts/hazel/default.nix +++ b/hosts/hazel/default.nix @@ -1,4 +1,4 @@ -{ modules, pkgs, ... }: { +{ config, modules, pkgs, ... }: { networking.hostName = "hazel"; system.stateVersion = "24.11"; time.timeZone = "Australia/Melbourne"; @@ -35,5 +35,11 @@ dbtype = "pgsql"; adminpassFile = "/persist/nextcloud-admin-pass"; }; + https = true; + }; + + services.nginx.virtualHosts.${config.services.nextcloud.hostName} = { + forceSSL = true; + enableACME = true; }; }