From 14de9dec556b38d3ec0a2cd695cb0902a4aacdb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=E2=80=9CNiols=E2=80=9D=20Jeannerod?= Date: Tue, 24 Sep 2024 14:51:41 +0200 Subject: [PATCH] Remove SSL in VM --- vm/pixelfed-vm.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/vm/pixelfed-vm.nix b/vm/pixelfed-vm.nix index 3320ddc4..33536485 100644 --- a/vm/pixelfed-vm.nix +++ b/vm/pixelfed-vm.nix @@ -1,5 +1,9 @@ -{ pkgs, modulesPath, ... }: { +{ pkgs, lib, modulesPath, ... }: +let + inherit (lib) mkVMOverride; + +in { imports = [ ../fediversity (modulesPath + "/virtualisation/qemu-vm.nix") @@ -15,6 +19,10 @@ settings = { FORCE_HTTPS_URLS = false; }; + nginx = { + forceSSL = mkVMOverride false; + enableACME = mkVMOverride false; + }; }; virtualisation.memorySize = 2048;