This repository has no description
0

Configure Feed

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

configs.orange-host: migrate facts to vars

+10 -6
+10 -6
2configs/orange-host.nix
··· 1 1 { config, pkgs, ... }: 2 2 { 3 3 krebs.sync-containers3.containers.orange = { 4 - sshKey = "${config.krebs.secret.directory}/orange.sync.key"; 4 + sshKey = config.clan.core.vars.generators.orange-container.files."orange.sync.key".path; 5 5 startCommand = '' 6 6 export PATH=$PATH:${pkgs.git}/bin 7 7 until ${pkgs.dig.host}/bin/host github.com; do sleep 1; done ··· 21 21 proxyPass = "http://orange.r"; 22 22 }; 23 23 }; 24 - clan.core.facts.services.orange-container = { 25 - secret."orange.sync.key" = { }; 26 - generator.script = ";"; 27 - generator.prompt = '' 28 - copy or reference the secret key from the container into here, so we can actually start/sync the container 24 + clan.core.vars.generators.orange-container = { 25 + files."orange.sync.key" = { }; 26 + migrateFact = "orange-container"; 27 + prompts.key = { 28 + description = "copy or reference the secret key from the container into here, so we can actually start/sync the container"; 29 + type = "hidden"; 30 + }; 31 + script = '' 32 + cp "$prompts"/key "$out"/orange.sync.key 29 33 ''; 30 34 }; 31 35 }