forked from aylac.top/nixcfg
this repo has no description

skibidididiid

Changed files
+68
modules
nixos
profiles
services
snippets
tailnet
+5
modules/nixos/profiles/arr/default.nix
···
dataDir = "${cfg.dataDir}/sonarr/.config/NzbDrone/";
openFirewall = true; # Port: 8989
};
+
+
flaresolverr = {
+
enable = true;
+
openFirewall = true; # Port: 8191
+
};
};
systemd = {
+1
modules/nixos/services/default.nix
···
./karakeep
./miniflux
./monitoring
+
./nitter
./ntfy
./pds
./qbittorrent
+50
modules/nixos/services/nitter/default.nix
···
+
{
+
config,
+
lib,
+
...
+
}: let
+
name = "nitter";
+
cfg = config.myNixOS.services.${name};
+
+
network = config.mySnippets.tailnet;
+
service = network.networkMap.${name};
+
in {
+
options.myNixOS.services.${name} = {
+
enable = lib.mkEnableOption "${name} server";
+
autoProxy = lib.mkOption {
+
default = true;
+
example = false;
+
description = "${name} auto proxy";
+
type = lib.types.bool;
+
};
+
};
+
+
config = lib.mkIf cfg.enable {
+
services = {
+
caddy.virtualHosts."${service.vHost}".extraConfig = lib.mkIf cfg.autoProxy ''
+
bind tailscale/${name}
+
encode zstd gzip
+
reverse_proxy ${service.hostName}:${toString service.port}
+
'';
+
+
nitter = {
+
enable = true;
+
openFirewall = true;
+
server = {
+
title = "twotter";
+
inherit (service) port;
+
hostname = "${config.mySnippets.tailnet.networkMap.redlib.vHost}";
+
};
+
preferences = {
+
theme = "Twitter";
+
squareAvatars = true;
+
replaceTwitter = "${service.vHost}";
+
replaceReddit = "${config.mySnippets.tailnet.networkMap.redlib.vHost}";
+
proxyVideos = false;
+
infiniteScroll = true;
+
hlsPlayback = true;
+
};
+
};
+
};
+
};
+
}
+12
modules/snippets/tailnet/default.nix
···
port = 8989;
vHost = "sonarr.${config.mySnippets.tailnet.name}";
};
+
+
flaresolverr = {
+
hostName = "nanpi";
+
port = 8191;
+
vHost = "flaresolverr.${config.mySnippets.tailnet.name}";
+
};
+
+
nitter = {
+
hostName = "nanpi";
+
port = 6034;
+
vHost = "twotter.${config.mySnippets.tailnet.name}";
+
};
};
};
};