]> Repositories - machines.git/blob - levanter/komuhn-website.nix
Configure Git server
[machines.git] / levanter / komuhn-website.nix
1 { pkgs, ... }: {
2         networking.firewall.allowedTCPPorts = [ 443 ];
3
4         services.wordpress = {
5                 webserver = "caddy";
6
7                 sites."komuhn.org" = {
8                         themes = {
9                                 "komuhn" = pkgs.stdenv.mkDerivation {
10                                         name = "komuhn-theme";
11
12                                         src = pkgs.fetchFromGitHub {
13                                                 owner = "teamkomuhn";
14                                                 repo = "komuhn.org-old";
15                                                 rev = "main";
16                                                 hash = "sha256-sn9Fvt1DCGVzKVZClmPRL0SadD9krX+h8nwwWwZz0P0=";
17                                         };
18
19                                         installPhase = "mkdir -p $out; cp -R * $out/";
20                                 };
21                         };
22
23                         extraConfig = "$table_prefix = \"fwt_\";";
24                 };
25         };
26 }