From 9bec557b33a6f2807e4b3c755187bbf0f494c409 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 15 Jun 2023 23:20:56 +0300 Subject: feat(tazjin/koptevo): provision certificate (for quassel) With this commit, Quassel becomes operative on koptevo. Change-Id: Ic877c5bb1525cf5288b0091cb0cd1328b5276264 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8788 Tested-by: BuildkiteCI Reviewed-by: tazjin --- users/tazjin/nixos/koptevo/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'users/tazjin') diff --git a/users/tazjin/nixos/koptevo/default.nix b/users/tazjin/nixos/koptevo/default.nix index 7bc47d973971..58f26d8ae1f9 100644 --- a/users/tazjin/nixos/koptevo/default.nix +++ b/users/tazjin/nixos/koptevo/default.nix @@ -11,8 +11,6 @@ in imports = [ (mod "quassel.nix") (mod "www/base.nix") - # (usermod "tgsa.nix") - # (usermod "predlozhnik.nix") ]; boot = { @@ -100,6 +98,17 @@ in preserveGenerations = "14d"; }; + services.nginx.virtualHosts."koptevo.tazj.in" = { + addSSL = true; + enableACME = true; + + extraConfig = '' + location = / { + return 302 https://at.tvl.fyi/?q=%2F%2Fusers%2Ftazjin%2Fnixos%2Fkoptevo%2Fdefault.nix; + } + ''; + }; + # List packages installed in system profile. To search, run: # $ nix search wget environment.systemPackages = with pkgs; [ -- cgit 1.4.1