From 850294a1004b79e626a8a0b32644144bbd22e65e Mon Sep 17 00:00:00 2001 From: mc-fucker Date: Wed, 17 Nov 2021 17:05:26 +0100 Subject: [PATCH] added invidious --- modules/invidious.nix | 19 +++++++++++++++++++ systems/mc3/configuration.nix | 15 ++++++++------- 2 files changed, 27 insertions(+), 7 deletions(-) create mode 100644 modules/invidious.nix diff --git a/modules/invidious.nix b/modules/invidious.nix new file mode 100644 index 0000000..5a493f4 --- /dev/null +++ b/modules/invidious.nix @@ -0,0 +1,19 @@ +{ config, ... }: +{ + services.invidious = { + enable = true; + port = 3001; + database = { + createLocally = false; + host = "postgres"; + passwordFile = "/etc/nixos/keys/invidious-dbpassword"; + }; + }; + networking.firewall.allowedTCPPorts = [ config.services.invidious.port ]; + systemd.services.invidious.serviceConfig = { + Restart = "always"; + RestartSec = "2s"; + }; +} + +# vim: set et ts=2 sw=2 ai: diff --git a/systems/mc3/configuration.nix b/systems/mc3/configuration.nix index ffdcf5b..e3c556b 100644 --- a/systems/mc3/configuration.nix +++ b/systems/mc3/configuration.nix @@ -4,7 +4,7 @@ { config, pkgs, lib, ... }: let - unstable = import {}; + #unstable = import {}; mc1 = "192.168.0.167"; in { @@ -12,14 +12,15 @@ [ ./hardware-configuration.nix ./modules/generic.nix + ./modules/invidious.nix ]; - nixpkgs.overlays = [ - (self: super: { - gitea = unstable.gitea; - htop = unstable.htop; - }) - ]; + #nixpkgs.overlays = [ + # (self: super: { + # gitea = unstable.gitea; + # htop = unstable.htop; + # }) + #]; networking.firewall.allowedTCPPorts = [ 3000 2222 ]; services = {