diff --git a/flake.lock b/flake.lock index c0a9d55..6035116 100644 --- a/flake.lock +++ b/flake.lock @@ -369,6 +369,26 @@ "url": "https://git.berlin.ccc.de/vinzenz/hyperhive.git" } }, + "hyperhive-website": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1779905524, + "narHash": "sha256-qhPwDaNHsmIRoe+rMUAc0C842LaHWnE6TkH4y+ru86g=", + "ref": "refs/heads/main", + "rev": "3b4900690dbc8e28e3c4e4e907ece870cdbff1a4", + "revCount": 10, + "type": "git", + "url": "https://forge.darkest.space/hyperhive/website.git" + }, + "original": { + "type": "git", + "url": "https://forge.darkest.space/hyperhive/website.git" + } + }, "lanzaboote": { "inputs": { "crane": "crane", @@ -789,6 +809,7 @@ "flake-parts": "flake-parts", "home-manager": "home-manager", "hyperhive": "hyperhive", + "hyperhive-website": "hyperhive-website", "lanzaboote": "lanzaboote", "naersk": "naersk_2", "niri": "niri", diff --git a/flake.nix b/flake.nix index acfef3c..212e0aa 100644 --- a/flake.nix +++ b/flake.nix @@ -20,6 +20,10 @@ nixpkgs-unstable.follows = "nixpkgs-unstable"; }; }; + hyperhive-website = { + url = "git+https://forge.darkest.space/hyperhive/website.git"; + inputs.nixpkgs.follows = "nixpkgs"; + }; lanzaboote = { url = "github:nix-community/lanzaboote/v1.0.0"; inputs.nixpkgs.follows = "nixpkgs"; diff --git a/nixosConfigurations/hetzner-vpn2/nginx.nix b/nixosConfigurations/hetzner-vpn2/nginx.nix index aa399aa..6c57361 100644 --- a/nixosConfigurations/hetzner-vpn2/nginx.nix +++ b/nixosConfigurations/hetzner-vpn2/nginx.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ pkgs, hyperhive-website, ... }: let blog-domain-socket = "/run/nginx/blog.sock"; anubis-domain-socket = "/run/anubis/anubis-main/anubis.sock"; @@ -41,6 +41,12 @@ in } ]; }; + + "hyperhive.darkest.space" = { + addSSL = true; + enableACME = true; + root = hyperhive-website.packages.${pkgs.stdenv.hostPlatform.system}.default; + }; }; };