dotfiles/nixos/boxes/cupsnet/videos.nix

26 lines
516 B
Nix
Raw Normal View History

2024-01-16 22:41:32 +00:00
{
inputs,
system,
...
}: let
2023-10-21 22:14:19 +01:00
domain = "vidyos.peninsula.industries";
port = 3876;
in {
2024-01-16 22:41:32 +00:00
imports = [../nginx.nix];
2023-10-21 22:14:19 +01:00
services.invidious = {
package =
2024-01-16 22:41:32 +00:00
inputs.nixpkgs-nixos-unstable.legacyPackages."${system}".invidious;
enable = true;
2023-10-21 22:14:19 +01:00
inherit domain;
inherit port;
database.createLocally = true;
2024-01-16 22:41:32 +00:00
nginx.enable = true;
2023-10-21 22:14:19 +01:00
settings = {
https_only = true;
2024-01-16 22:41:32 +00:00
disable_proxy = true;
2023-10-21 22:14:19 +01:00
registration_enabled = false;
hmac_key = "hd5YPAk7XR3W7nEWRrP6";
};
};
}