This repository has no description
0

Configure Feed

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

configs.hotdog-host: migrate facts to vars

+9 -8
+9 -8
2configs/hotdog-host.nix
··· 1 1 { config, pkgs, ... }: 2 2 { 3 3 krebs.sync-containers3.containers.hotdog = { 4 - sshKey = "${config.krebs.secret.directory}/hotdog.sync.key"; 4 + sshKey = config.clan.core.vars.generators.hotdog-container.files."hotdog.sync.key".path; 5 5 startCommand = '' 6 6 export PATH=$PATH:${pkgs.git}/bin 7 7 ln -sfrT /var/lib/var_src /var/src ··· 13 13 hostPath = "/var/lib/sync-containers3/hotdog/state"; 14 14 isReadOnly = false; 15 15 }; 16 - clan.core.facts.services.hotdog-container = { 17 - secret."hotdog.sync.key" = { }; 18 - public."hotdog.sync.pub" = { }; 19 - generator.path = with pkgs; [ 16 + clan.core.vars.generators.hotdog-container = { 17 + files."hotdog.sync.key" = { }; 18 + files."hotdog.sync.pub" = { }; 19 + migrateFact = "hotdog-container"; 20 + runtimeInputs = with pkgs; [ 20 21 coreutils 21 22 openssh 22 23 ]; 23 - generator.script = '' 24 - ssh-keygen -t ed25519 -N "" -f "$secrets"/hotdog.sync.key 25 - mv "$secrets"/hotdog.sync.key.pub "$facts"/hotdog.sync.pub 24 + script = '' 25 + ssh-keygen -t ed25519 -N "" -f "$out"/hotdog.sync.key 26 + mv "$out"/hotdog.sync.key.pub "$out"/hotdog.sync.pub 26 27 ''; 27 28 }; 28 29 }