From 0239733e627f52366d19dccdca726009f4ad4b66 Mon Sep 17 00:00:00 2001 From: ahtlon Date: Tue, 26 Nov 2024 18:45:31 +0100 Subject: [PATCH] sops.... --- machines/discourse/configuration.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/machines/discourse/configuration.nix b/machines/discourse/configuration.nix index 4208aff..e7be585 100644 --- a/machines/discourse/configuration.nix +++ b/machines/discourse/configuration.nix @@ -4,6 +4,10 @@ with lib; { sops.defaultSopsFile = ./secrets.yaml; + sops.secrets = { + discourseAdminPasswordFile = {}; + discourseSecretKeyBaseFile = {}; + }; networking = { hostName = mkDefault "discourse"; @@ -28,6 +32,12 @@ with lib; passwordFile = config.sops.secrets.discourseAdminPasswordFile.path; }; secretKeyBaseFile = config.sops.secrets.discourseSecretKeyBaseFile.path; + database.createLocally = true; + enableACME = false; + }; + services.postgresql = { + enable = true; + package = pkgs.postgresql_13; }; networking.firewall.allowedTCPPorts = [ 80 443 ];