config/profiles/http/sites/linktree-pbsds.nix

27 lines
716 B
Nix
Raw Permalink Normal View History

2023-02-25 00:03:29 +01:00
{ config, pkgs, lib, mkDomain, ... }:
{
# links.pbsds.net
2023-03-13 01:15:03 +01:00
# TODO: links as the main site is only temporary
2023-02-25 00:03:29 +01:00
services.nginx.virtualHosts."links.pbsds.net" = let
links-pbsds-net = pkgs.fetchFromGitea rec {
name = repo;
domain = "gitea.noximilien.pbsds.net";
owner = "pbsds";
repo = "links.pbsds.net";
rev = "61cd605f198a22db87af087fda34c378b03d4306";
hash = "sha256-dx19aTy8K9xkL+cO4r4huYKrlVBZMUkDcbjqxLKe8W4=";
};
in {
2023-03-13 01:15:03 +01:00
serverAliases = [
"pbsds.net"
"www.pbsds.net"
];
2023-02-25 00:03:29 +01:00
#serverAliases = map mkDomain [ "links" ];
forceSSL = true; # addSSL = true;
enableACME = true; #useACMEHost = acmeDomain;
root = "${links-pbsds-net}";
};
}