Add gotosocial and peertube.
This commit is contained in:
parent
8f06712b8b
commit
31a2c39d2b
3 changed files with 35 additions and 4 deletions
24
hosts/hub/apps/gts.nix
Normal file
24
hosts/hub/apps/gts.nix
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
package = pkgs.unstable.gotosocial;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
services = {
|
||||||
|
gotosocial = {
|
||||||
|
enable = true;
|
||||||
|
package = package;
|
||||||
|
settings = {
|
||||||
|
application-name = "Nolan's Social Media";
|
||||||
|
host = "gts.thewordnerd.info";
|
||||||
|
port = 8081;
|
||||||
|
landing-page-user = "nolan";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
caddy.virtualHosts."gts.thewordnerd.info".extraConfig = ''
|
||||||
|
reverse_proxy http://localhost:8081
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
environment.systemPackages = [ package ];
|
||||||
|
}
|
|
@ -1,15 +1,21 @@
|
||||||
|
{ config, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
age.secrets.thewordnerd_peertube = {
|
||||||
|
file = ../../../secrets/thewordnerd_peertube.age;
|
||||||
|
owner = config.services.peertube.user;
|
||||||
|
};
|
||||||
services = {
|
services = {
|
||||||
peertube = {
|
peertube = {
|
||||||
enable = true;
|
enable = true;
|
||||||
localDomain = "peertube.thewordnerd.info";
|
localDomain = "peertube.thewordnerd.info";
|
||||||
|
listenWeb = 443;
|
||||||
redis.createLocally = true;
|
redis.createLocally = true;
|
||||||
database.createLocally = true;
|
database.createLocally = true;
|
||||||
|
secrets.secretsFile = config.age.secrets.thewordnerd_peertube.path;
|
||||||
};
|
};
|
||||||
services.caddy.virtualHosts."peertube.thewordnerd.info".extraConfig = ''
|
caddy.virtualHosts."peertube.thewordnerd.info".extraConfig = ''
|
||||||
reverse_proxy http://localhost:9000
|
reverse_proxy http://localhost:9000
|
||||||
'';
|
'';
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
../../roles/lldap.nix
|
../../roles/lldap.nix
|
||||||
../../roles/authelia.nix
|
../../roles/authelia.nix
|
||||||
../../roles/podman.nix
|
../../roles/podman.nix
|
||||||
../../roles/minio.nix
|
|
||||||
../../roles/caddy.nix
|
../../roles/caddy.nix
|
||||||
../../roles/vscode-remote.nix
|
../../roles/vscode-remote.nix
|
||||||
../../roles/postgres.nix
|
../../roles/postgres.nix
|
||||||
|
@ -28,6 +27,8 @@
|
||||||
./apps/dev.nix
|
./apps/dev.nix
|
||||||
./apps/nextcloud.nix
|
./apps/nextcloud.nix
|
||||||
./apps/paperless.nix
|
./apps/paperless.nix
|
||||||
|
./apps/gts.nix
|
||||||
|
./apps/peertube.nix
|
||||||
./apps/searxng.nix
|
./apps/searxng.nix
|
||||||
./apps/actual.nix
|
./apps/actual.nix
|
||||||
./apps/adguard.nix
|
./apps/adguard.nix
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue