2022-03-15 15:58:04 +00:00
|
|
|
{ lib, pkgs, ... }:
|
2021-12-01 14:47:40 +00:00
|
|
|
|
2021-12-08 16:39:00 +00:00
|
|
|
let
|
|
|
|
domain = "tweet.giugl.io";
|
|
|
|
network = import ./network.nix;
|
2021-12-01 14:47:40 +00:00
|
|
|
in {
|
|
|
|
services = {
|
|
|
|
nitter = {
|
|
|
|
enable = true;
|
2021-12-01 14:47:50 +00:00
|
|
|
server = {
|
|
|
|
port = 9093;
|
|
|
|
hostname = domain;
|
2022-03-15 15:58:04 +00:00
|
|
|
staticDir = "${pkgs.unstable.nitter}/share/nitter/public";
|
2021-12-01 14:47:50 +00:00
|
|
|
};
|
|
|
|
preferences = {
|
|
|
|
replaceYouTube = "tube.giugl.io";
|
|
|
|
replaceTwitter = "tweet.giugl.io";
|
|
|
|
};
|
2021-12-01 14:47:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nginx.virtualHosts.${domain} = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
2021-12-08 16:39:00 +00:00
|
|
|
locations."/" = { proxyPass = "http://localhost:9093"; };
|
2021-12-01 14:47:40 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.extraHosts = ''
|
2021-12-08 16:39:00 +00:00
|
|
|
${network.architect-lan} ${domain}
|
|
|
|
${network.architect-wg} ${domain}
|
2021-12-01 14:47:40 +00:00
|
|
|
'';
|
|
|
|
}
|