add invidious

This commit is contained in:
Kopatz
2023-12-08 11:50:59 +01:00
parent f4bcebb858
commit 9bdd1c44a2
5 changed files with 76 additions and 6 deletions

View File

@@ -67,6 +67,7 @@
./modules/paperless.nix ./modules/paperless.nix
./modules/kavita.nix ./modules/kavita.nix
./modules/netdata.nix ./modules/netdata.nix
./modules/invidious.nix
./modules/tmpfs.nix ./modules/tmpfs.nix
### Hardware ### ### Hardware ###
./modules/hardware/ssd.nix ./modules/hardware/ssd.nix

View File

@@ -1,11 +1,6 @@
{ config, pkgs, inputs, ... }: { config, pkgs, inputs, ... }:
let let
keepassWithPlugins = pkgs.keepass.override {
plugins = [
pkgs.keepass-keepassrpc
];
};
screenshot = pkgs.writeShellScriptBin "screenshot.sh" '' screenshot = pkgs.writeShellScriptBin "screenshot.sh" ''
${pkgs.scrot}/bin/scrot -fs - | ${pkgs.xclip}/bin/xclip -selection clipboard -t image/png -i ${pkgs.scrot}/bin/scrot -fs - | ${pkgs.xclip}/bin/xclip -selection clipboard -t image/png -i
''; '';
@@ -21,6 +16,7 @@ in
fonts.fontDir.enable = true; fonts.fontDir.enable = true;
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
noto-fonts-cjk
nerdfonts nerdfonts
]; ];
@@ -43,7 +39,7 @@ in
wget wget
nixos-option nixos-option
kate kate
keepassWithPlugins keepassxc
jetbrains.idea-ultimate jetbrains.idea-ultimate
jetbrains.rider jetbrains.rider
neovim neovim
@@ -78,6 +74,13 @@ in
obs-studio obs-studio
mpv mpv
ffmpeg ffmpeg
p7zip
qbittorrent
(wrapOBS {
plugins = with obs-studio-plugins; [
obs-pipewire-audio-capture
];
})
]; ];
#environment.sessionVariables = { #environment.sessionVariables = {

52
modules/invidious.nix Normal file
View File

@@ -0,0 +1,52 @@
{ config, vars, ...} :
let
fqdn = "yt.local";
in
{
services.invidious = {
enable = true;
domain = fqdn;
port = 8007;
database = {
createLocally = true;
};
settings = {
db = {
user = "invidious";
dbname = "invidious";
};
host_binding = "127.0.0.1";
external_port = 80;
https_only = false;
use_quic = false;
statistics_enabled = false;
registration_enabled = false;
login_enabled = true;
captcha_enabled = false;
admins = [ ];
use_pubsub_feeds = false;
channel_refresh_interval = "15m";
};
extraSettingsFile = config.age.secrets.invidious-extra-settings.path;
nginx.enable = false;
};
services.nginx.virtualHosts."${fqdn}" = {
listenAddresses = [ vars.ipv4 vars.wireguardIp ];
locations."/" = {
recommendedProxySettings = true;
proxyPass = "http://127.0.0.1:8007";
};
};
}

View File

@@ -0,0 +1,13 @@
age-encryption.org/v1
-> ssh-ed25519 yfCCMw 6jWruJCLoMEEAnn6XAttdgTKL82rnBk7s024ywWHU0Y
+CHitjm4MWlB5WE1KFNu9YBOz4VO/WV0m+gkO7As5NM
-> ssh-ed25519 IV3DkQ OYSZKTxTGJq/EfW/vroDuAGjNZUCqHT0LmLUxNlUmxI
4jB7RYoAV0H4byySaNCCVDTU7ifimCBNsG8Dn7mJc8A
-> ssh-ed25519 DCzi1A vTbfcAE/SG3j/+X3LJKiR8t0FGS0FTwGCNJeL59NwDU
a45ktRFtTi9ozSos/RnfN+JigWKtCaT9Jxyh2eVZ0oA
-> tJ=h;wiS-grease kW mrVTJ h>*9"` 2Ml~-
UImFDxcOzCk5f0OTR4pftMOSNMb5Nj0Q3iyyfOm8WMPBz1NJiiACopTbDa/63vEy
q4JvHRf4
--- zpsUuZO8S/MbFO+dvOzzl1bZaf3sB4WV0IAMyE/tXlc
Ô£•®<EFBFBD>íf/PD~Ó‡<C393>«4ѹOh¸u<wkrŸµ½ÆGÿ¾È™€gŠK‰Õ2Ym'†.ü‚ÜÍz)ñôì<C3B4>kÊø¯æ<C2AF>ô¾rèw,
ËêW&é‹È

View File

@@ -20,4 +20,5 @@ in
"matrix-registration.age".publicKeys = [ nix-test-vm server kop ]; "matrix-registration.age".publicKeys = [ nix-test-vm server kop ];
"paperless.age".publicKeys = [ nix-test-vm server kop ]; "paperless.age".publicKeys = [ nix-test-vm server kop ];
"kavita.age".publicKeys = [ nix-test-vm server kop ]; "kavita.age".publicKeys = [ nix-test-vm server kop ];
"invidious-extra-settings.age".publicKeys = [ nix-test-vm server kop ];
} }