diff options
author | Vincent Ambo <mail@tazj.in> | 2023-06-15T20·20+0300 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2023-06-15T21·34+0000 |
commit | 9bec557b33a6f2807e4b3c755187bbf0f494c409 (patch) | |
tree | f192d036f98c7c58cdbb145923dd92d0118a24a3 /users/tazjin/nixos/koptevo | |
parent | 8fc29668b1a2bc82f9547cfcf50841ff4a9436fc (diff) |
feat(tazjin/koptevo): provision certificate (for quassel) r/6319
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 <tazjin@tvl.su>
Diffstat (limited to 'users/tazjin/nixos/koptevo')
-rw-r--r-- | users/tazjin/nixos/koptevo/default.nix | 13 |
1 files changed, 11 insertions, 2 deletions
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; [ |