From 190af4143f2635181a648590a325ca2aa4afd114 Mon Sep 17 00:00:00 2001 From: mc-fucker Date: Thu, 27 Jan 2022 17:14:52 +0100 Subject: [PATCH] added nitter --- configuration.nix | 36 ++++++++++++++++++++++++++++++++++++ modules/nitter.nix | 23 +++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 configuration.nix create mode 100644 modules/nitter.nix diff --git a/configuration.nix b/configuration.nix new file mode 100644 index 0000000..bf21344 --- /dev/null +++ b/configuration.nix @@ -0,0 +1,36 @@ +# Edit this configuration file to define what should be installed on +# your system. Help is available in the configuration.nix(5) man page +# and in the NixOS manual (accessible by running ‘nixos-help’). + +{ config, pkgs, lib, ... }: + let + #unstable = import {}; + mc1 = "192.168.0.167"; + in +{ + imports = + [ + ./hardware-configuration.nix + ./modules/generic.nix + ./modules/invidious.nix + ./modules/nitter.nix + ./modules/borg.nix + ]; + + #nixpkgs.overlays = [ + # (self: super: { + # gitea = unstable.gitea; + # htop = unstable.htop; + # }) + #]; + + networking.firewall.allowedTCPPorts = [ 3000 2222 ]; + services = { + gitea = import ./modules/gitea.nix; + }; + + + system.stateVersion = "21.05"; +} + +# vim: set et ts=2 sw=2 ai: diff --git a/modules/nitter.nix b/modules/nitter.nix new file mode 100644 index 0000000..d9b18b7 --- /dev/null +++ b/modules/nitter.nix @@ -0,0 +1,23 @@ +{ ... }: +let + domain = "t.mc-fucker.cool"; +in +{ + services.nitter = { + enable = true; + openFirewall = true; + cache.listMinutes = 480; + server = { + hostname = domain; + https = true; + }; + preferences = { + hlsPlayback = true; + infiniteScroll = true; + replaceTwitter = domain; + replaceYouTube = "y${domain}"; + }; + }; +} + +# vim: set et ts=2 sw=2 ai: