feat(tazjin/koptevo): run gonic on music.tazj.in

Change-Id: Id281142e59647d9db02f64a352cba768d4d83237
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9497
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
This commit is contained in:
Vincent Ambo 2023-09-30 23:21:24 +03:00 committed by tazjin
parent 5df59d2c7f
commit c5cb622d02

View file

@ -112,8 +112,8 @@ in
services.depot.automatic-gc = {
enable = true;
interval = "daily";
diskThreshold = 2; # GiB # TODO
maxFreed = 8; # GiB
diskThreshold = 15; # GiB
maxFreed = 10; # GiB
preserveGenerations = "14d";
};
@ -128,6 +128,32 @@ in
'';
};
# I don't use the podcast feature, but I *have to* supply podcasts
# to gonic ...
systemd.tmpfiles.rules = [
"d /tmp/fake-podcasts 0555 nobody nobody -"
];
services.gonic = {
enable = true;
settings = {
listen-addr = "0.0.0.0:4747";
scan-interval = 5;
scan-at-start-enabled = true;
podcast-path = [ "/tmp/fake-podcasts" ];
music-path = [ "/var/lib/geesefs/tazjins-files/music" ];
};
};
services.nginx.virtualHosts."music.tazj.in" = {
addSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://127.0.0.1:4747";
};
};
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [