added nitter
This commit is contained in:
parent
7f4bb6dc1b
commit
190af4143f
2 changed files with 59 additions and 0 deletions
36
configuration.nix
Normal file
36
configuration.nix
Normal file
|
|
@ -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 <nixos-unstable> {};
|
||||||
|
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:
|
||||||
23
modules/nitter.nix
Normal file
23
modules/nitter.nix
Normal file
|
|
@ -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:
|
||||||
Loading…
Add table
Reference in a new issue