This repository has no description
0

Configure Feed

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

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