This repository has no description
735 B
21 lines
1{ config, pkgs, ... }:
2{
3 lass.sync-containers3.containers.green = {
4 sshKey = config.clan.core.vars.generators.green-container.files."green.sync.key".path;
5 startCommand = ''
6 export PATH=$PATH:${pkgs.git}/bin
7 until ${pkgs.dig.host}/bin/host github.com; do sleep 1; done
8 ${pkgs.nixos-rebuild}/bin/nixos-rebuild --refresh --flake github:lassulus/superconfig#green switch --no-write-lock-file
9 '';
10 };
11 clan.core.vars.generators.green-container = {
12 files."green.sync.key" = { };
13 script = ":";
14 prompts.warn = {
15 description = ''
16 copy or reference the secret key from the container into here, so we can actually start/sync the container
17 '';
18 type = "hidden";
19 };
20 };
21}