This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

superconfig / 2configs / services / radio / container-host.nix
702 B 26 lines
1{ self, config, pkgs, ... }: 2{ 3 imports = [ 4 self.inputs.stockholm.nixosModules.htgen 5 ]; 6 krebs.sync-containers3.containers.radio = { 7 sshKey = "${config.krebs.secret.directory}/radio.sync.key"; 8 }; 9 containers.radio = { 10 bindMounts."/var/music" = { 11 hostPath = "/var/music"; 12 isReadOnly = false; 13 }; 14 }; 15 krebs.iptables.tables.filter.INPUT.rules = [ 16 { predicate = "-p tcp --dport 8000"; target = "ACCEPT"; } 17 ]; 18 krebs.htgen.radio-redirect = { 19 port = 8000; 20 scriptFile = pkgs.writers.writeDash "redir" '' 21 printf 'HTTP/1.1 301 Moved Permanently\r\n' 22 printf "Location: http://radio.lassul.us''${Request_URI}\r\n" 23 printf '\r\n' 24 ''; 25 }; 26}