This repository has no description
860 B
27 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 startCommand = ''
9 export PATH=$PATH:${pkgs.git}/bin
10 until ${pkgs.dig.host}/bin/host github.com; do sleep 1; done
11 ${pkgs.nixos-rebuild}/bin/nixos-rebuild --refresh --flake github:lassulus/superconfig#radio switch --no-write-lock-file
12 '';
13 };
14 containers.radio = {
15 bindMounts."/var/music" = {
16 hostPath = "/var/music";
17 isReadOnly = false;
18 };
19 };
20 clanCore.facts.services.radio-container = {
21 secret."radio.sync.key" = { };
22 generator.script = ";";
23 generator.prompt = ''
24 copy or reference the secret key from the container into here, so we can actually start/sync the container
25 '';
26 };
27}