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
921 B 34 lines
1{ 2 self, 3 config, 4 pkgs, 5 ... 6}: 7{ 8 imports = [ 9 self.inputs.stockholm.nixosModules.htgen 10 ]; 11 krebs.sync-containers3.containers.radio = { 12 sshKey = "${config.krebs.secret.directory}/radio.sync.key"; 13 startCommand = '' 14 export PATH=$PATH:${pkgs.git}/bin 15 until ${pkgs.dig.host}/bin/host github.com; do sleep 1; done 16 ${pkgs.nixos-rebuild}/bin/nixos-rebuild --refresh --flake github:lassulus/superconfig#radio switch --no-write-lock-file 17 ''; 18 }; 19 containers.radio = { 20 bindMounts."/var/music" = { 21 hostPath = "/var/music"; 22 isReadOnly = false; 23 }; 24 }; 25 clan.core.vars.generators.radio-container = { 26 files."radio.sync.key" = { }; 27 prompts.key.description = '' 28 copy or reference the secret key from the container into here, so we can actually start/sync the container 29 ''; 30 script = '' 31 cat "$prompts"/key > "$out"/radio.sync.key 32 ''; 33 }; 34}