diff options
Diffstat (limited to 'vps-configuration.env.nix')
-rw-r--r-- | vps-configuration.env.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/vps-configuration.env.nix b/vps-configuration.env.nix index e330d2f..7bf5a4e 100644 --- a/vps-configuration.env.nix +++ b/vps-configuration.env.nix @@ -6,6 +6,7 @@ let nextcloudTLD = "$NEXTCLOUD_TLD"; gitTLD = "$GIT_TLD"; prosodyTLD = "$PROSODY_TLD"; + bonecoTLD = "$BONECO_TLD"; letsencryptEmail = "$LETSENCRYPT_EMAIL"; authorizedKey = "$AUTHORIZED_KEY"; userPassword = "$USER_PASSWORD"; @@ -23,6 +24,17 @@ let prosodyHTTPUploadTLD = "$PROSODY_HTTP_UPLOAD_TLD"; prosodyPort = "$PROSODY_PORT"; }; + boneco = pkgs.stdenv.mkDerivation { + name = "boneco"; + src = + fetchTarball "https://git.sr.ht/~euandreh/boneco/archive/master.tar.gz"; + phases = "unpackPhase buildPhase"; + buildPhase = '' + mkdir ${DOLLAR}out + cp index.html ${DOLLAR}out + cp favicon.ico ${DOLLAR}out + ''; + }; in { imports = [ ./hardware-configuration.nix ]; @@ -100,6 +112,11 @@ in { proxyPass = "http://localhost:${envsubstConfiguration.gitPort}"; }; }; + "${envsubstConfiguration.bonecoTLD}" = { + forceSSL = true; + enableACME = true; + root = boneco; + }; }; }; |