Set up invidious
This commit is contained in:
parent
e30d42e8f2
commit
d7db3abaae
BIN
common/icons/invidious.png
Normal file
BIN
common/icons/invidious.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
|
@ -17,3 +17,4 @@ The idea is to always use consecutive ports, but never go back and try to recycl
|
|||
| 8411 | [prometheus node exporter](../hosts/nixos/lapetus/services/prometheus.nix) |
|
||||
| 8412 | [prometheus nginx exporter](../hosts/nixos/lapetus/services/prometheus.nix) |
|
||||
| 8413 | [commafeed](../hosts/nixos/lapetus/services/commafeed.nix) |
|
||||
| 8414 | [invidious](../hosts/nixos/lapetus/services/invidious.nix) |
|
||||
|
|
3
hosts/nixos/common/optional/services/postgres.nix
Normal file
3
hosts/nixos/common/optional/services/postgres.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
environment.persistence."/persist/state".directories = [ "/var/lib/postgres" ];
|
||||
}
|
|
@ -16,6 +16,7 @@
|
|||
./services/prometheus.nix
|
||||
./services/grafana.nix
|
||||
./services/commafeed.nix
|
||||
./services/invidious.nix
|
||||
./filesystems
|
||||
./hardware
|
||||
];
|
||||
|
|
|
@ -118,6 +118,20 @@ in
|
|||
];
|
||||
}
|
||||
# }}}
|
||||
# {{{ Entertainment
|
||||
{
|
||||
name = "Entertainment";
|
||||
icon = fa "gamepad";
|
||||
items = [
|
||||
{
|
||||
name = "Invidious";
|
||||
subtitle = "Youtube client";
|
||||
logo = icon "invidious.png";
|
||||
url = "https://yt.moonythm.dev";
|
||||
}
|
||||
];
|
||||
}
|
||||
# }}}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
29
hosts/nixos/lapetus/services/invidious.nix
Normal file
29
hosts/nixos/lapetus/services/invidious.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ config, ... }: {
|
||||
imports = [
|
||||
../../common/optional/services/nginx.nix
|
||||
../../common/optional/services/postgres.nix
|
||||
];
|
||||
|
||||
services.invidious = {
|
||||
enable = true;
|
||||
domain = "yt.moonythm.dev";
|
||||
port = 8414;
|
||||
|
||||
nginx.enable = true;
|
||||
|
||||
settings = {
|
||||
captcha_enabled = false;
|
||||
admins = [ "prescientmoon" ];
|
||||
default_user_preferences = {
|
||||
default_home = "Subscriptions";
|
||||
max_results = 40;
|
||||
comments = [ "youtube" "reddit" ];
|
||||
save_player_pos = true;
|
||||
automatic_instance_redirect = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts.${config.services.invidious.domain} =
|
||||
config.satellite.proxy config.services.invidious.port { };
|
||||
}
|
Loading…
Reference in a new issue