h: enable yarr

This commit is contained in:
Aaron Bieber 2022-10-11 09:28:27 -06:00
parent ec698c54dd
commit d457bf870c
No known key found for this signature in database

View File

@ -23,7 +23,11 @@ let
in {
_module.args.isUnstable = true;
imports = [ ./hardware-configuration.nix ../../modules/gotosocial.nix ];
imports = [
./hardware-configuration.nix
../../modules/gotosocial.nix
../../modules/yarr.nix
];
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
@ -71,6 +75,11 @@ in {
mode = "400";
sopsFile = config.xin-secrets.h.services;
};
yarr_auth = {
owner = config.users.users.yarr.name;
mode = "400";
sopsFile = config.xin-secrets.h.services;
};
};
networking = {
@ -156,6 +165,9 @@ in {
};
services = {
yarr = {
enable = true;
};
gotosocial = {
enable = true;
# https://github.com/superseriousbusiness/gotosocial/blob/v0.5.0-rc1/example/config.yaml
@ -442,6 +454,17 @@ in {
enableACME = true;
root = "/var/www/mammothcircus.com";
};
"rss.bolddaemon.com" = {
forceSSL = true;
enableACME = true;
root = "/var/www/rss.bolddaemon.com";
locations."/" = {
proxyWebsockets = true;
proxyPass = "http://${config.services.yarr.address}:${
toString config.services.yarr.port
}";
};
};
"tapenet.org" = {
forceSSL = true;
enableACME = true;