From 328a85c50453c212b09d3a4151f3da60363741dc Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 30 Jun 2022 17:33:09 +0800 Subject: [PATCH] nixbld: install nextcloud --- nixbld-etc-nixos/configuration.nix | 12 ++++++++++++ nixbld-etc-nixos/named/m-labs.hk | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index 18c3ad04..ce7fc292 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -773,6 +773,10 @@ in ''; }; }; + "files.m-labs.hk" = { + forceSSL = true; + enableACME = true; + }; "nmigen.org" = { addSSL = true; useACMEHost = "nixbld.m-labs.hk"; @@ -860,5 +864,13 @@ in certificateScheme = 3; }; + services.nextcloud = { + enable = true; + package = pkgs.nextcloud24; + hostName = "files.m-labs.hk"; + https = true; + config.adminpassFile = "/etc/nixos/secret/nextcloud_pass.txt"; + }; + system.stateVersion = "21.05"; } diff --git a/nixbld-etc-nixos/named/m-labs.hk b/nixbld-etc-nixos/named/m-labs.hk index ce47046f..dc73dd2a 100644 --- a/nixbld-etc-nixos/named/m-labs.hk +++ b/nixbld-etc-nixos/named/m-labs.hk @@ -1,7 +1,7 @@ $TTL 7200 @ SOA 42-200-147-171.static.imsbiz.com. sb.m-labs.hk. ( - 2022062801 + 2022063004 7200 3600 86400 @@ -30,6 +30,7 @@ hooks CNAME @ forum CNAME @ perso CNAME @ rt CNAME @ +files CNAME @ rpi-1 AAAA 2001:470:f821:1:dea6:32ff:fe8a:6a93 rpi-2 AAAA 2001:470:f821:1:ba27:ebff:fef0:e9e6