summaryrefslogtreecommitdiff
path: root/nixos/hosts
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/hosts')
-rw-r--r--nixos/hosts/tente/git.nix2
-rw-r--r--nixos/hosts/tente/matrix.nix2
-rw-r--r--nixos/hosts/tente/web-personal.nix2
3 files changed, 6 insertions, 0 deletions
diff --git a/nixos/hosts/tente/git.nix b/nixos/hosts/tente/git.nix
index 0e005c7..912abab 100644
--- a/nixos/hosts/tente/git.nix
+++ b/nixos/hosts/tente/git.nix
@@ -2,6 +2,7 @@
let
cfg = config.git;
+ helpers = import <top/helpers.nix>;
in
{
options.git = {
@@ -30,6 +31,7 @@ in
nginx.virtualHosts.${cfg.webUiDomain} = {
enableACME = true;
forceSSL = true;
+ extraConfig = helpers.mkNginxConfig cfg.webUiDomain;
};
cgit.main = {
diff --git a/nixos/hosts/tente/matrix.nix b/nixos/hosts/tente/matrix.nix
index ab6931e..7e802c6 100644
--- a/nixos/hosts/tente/matrix.nix
+++ b/nixos/hosts/tente/matrix.nix
@@ -2,6 +2,7 @@
let
cfg = config.matrix;
+ helpers = import <top/helpers.nix>;
in
{
options.matrix = {
@@ -46,6 +47,7 @@ in
nginx.virtualHosts.${cfg.apiDomain} = {
enableACME = true;
forceSSL = true;
+ extraConfig = helpers.mkNginxConfig cfg.apiDomain;
# TODO: add locations."/" with some message
diff --git a/nixos/hosts/tente/web-personal.nix b/nixos/hosts/tente/web-personal.nix
index 7c17063..4e86e9b 100644
--- a/nixos/hosts/tente/web-personal.nix
+++ b/nixos/hosts/tente/web-personal.nix
@@ -2,6 +2,7 @@
let
cfg = config.web-personal;
+ helpers = import <top/helpers.nix>;
in
{
options.web-personal = {
@@ -27,6 +28,7 @@ in
enableACME = true;
forceSSL = true;
root = "/srv/www/${cfg.domain}";
+ extraConfig = helpers.mkNginxConfig cfg.domain;
locations."= /.well-known/matrix/server".extraConfig = mkWellKnown {
"m.server" = "${cfg.matrixApiDomain}:443";