]> Untitled Git - MarigoldOS/.git/blob - profiles/nitter.nix
more 0x00 stuff moved over
[MarigoldOS/.git] / profiles / nitter.nix
1 { config, lib, ... }:
2 let
3   fqdn = "nitter.${config.networking.fqdn}";
4 in {
5   services.nitter = {
6     enable = true;
7     server = {
8       hostname = "${fqdn}";
9       address = "127.0.0.1";
10       https = config.security.acme.acceptTerms;
11     };
12     preferences = {
13       replaceTwitter = "${fqdn}";
14       replaceInstagram = "farside.link/bibliogram";
15       replaceYouTube = if config.services.invidious.enable then "${config.services.invidious.domain}" else "farside.link/invidious";
16     };
17   };
18   helpers.webservices."${fqdn}".port = config.services.nitter.server.port;
19 }