diff options
Diffstat (limited to 'users')
-rw-r--r-- | users/tazjin/nixos/koptevo/default.nix | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/users/tazjin/nixos/koptevo/default.nix b/users/tazjin/nixos/koptevo/default.nix index 11bbfde138aa..0753f6ff5a0a 100644 --- a/users/tazjin/nixos/koptevo/default.nix +++ b/users/tazjin/nixos/koptevo/default.nix @@ -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; [ |