This repository has no description
837 B
22 lines
1{ config, pkgs, ... }:
2{
3 lass.sync-containers3.containers.orange = {
4 sshKey = config.clan.core.vars.generators.orange-container.files."orange.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#orange switch --no-write-lock-file
9 '';
10 };
11 containers.orange.bindMounts."/var/lib" = {
12 hostPath = "/var/lib/sync-containers3/orange/state";
13 isReadOnly = false;
14 };
15 clan.core.vars.generators.orange-container = {
16 files."orange.sync.key" = { };
17 prompts.warn = {
18 description = "copy or reference the secret key from the container into here, so we can actually start/sync the container";
19 type = "hidden";
20 };
21 };
22}