forked from
lass.pds.lassul.us/superconfig
This repository has no description
868 B
32 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 clanCore.facts.services.radio-container = {
26 secret."radio.sync.key" = { };
27 generator.script = ";";
28 generator.prompt = ''
29 copy or reference the secret key from the container into here, so we can actually start/sync the container
30 '';
31 };
32}