This repository has no description
0

Configure Feed

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

retilum: migrate from facts to vars

+15 -14
+15 -14
2configs/retiolum.nix
··· 17 17 AutoConnect = yes 18 18 LocalDiscovery = yes 19 19 ''; 20 - privkey = config.clanCore.facts.services.retiolum.secret."retiolum.rsa_key.priv".path; 21 - privkey_ed25519 = config.clanCore.facts.services.retiolum.secret."retiolum.ed25519_key.priv".path; 20 + privkey = config.clan.core.vars.generators.retiolum.files."retiolum.rsa_key.priv".path; 21 + privkey_ed25519 = config.clan.core.vars.generators.retiolum.files."retiolum.ed25519_key.priv".path; 22 22 }; 23 23 24 - clanCore.facts.services.retiolum = { 25 - secret."retiolum.rsa_key.priv" = { }; 26 - secret."retiolum.ed25519_key.priv" = { }; 27 - public."retiolum.rsa_key.pub" = { }; 28 - public."retiolum.ed25519_key.pub" = { }; 29 - generator.path = with pkgs; [ 24 + clanCore.vars.generators.retiolum = { 25 + files."retiolum.rsa_key.priv" = { }; 26 + files."retiolum.ed25519_key.priv" = { }; 27 + files."retiolum.rsa_key.pub".secret = false; 28 + files."retiolum.ed25519_key.pub".secret = false; 29 + migrateFact = "retiolum"; 30 + runtimeInputs = with pkgs; [ 30 31 coreutils 31 32 tinc_pre 32 33 ]; 33 - generator.script = '' 34 - tinc --config "$secrets" generate-keys 4096 >/dev/null 35 - mv "$secrets"/rsa_key.priv "$secrets"/retiolum.rsa_key.priv 36 - mv "$secrets"/ed25519_key.priv "$secrets"/retiolum.ed25519_key.priv 37 - mv "$secrets"/rsa_key.pub "$facts"/retiolum.rsa_key.pub 38 - mv "$secrets"/ed25519_key.pub "$facts"/retiolum.ed25519_key.pub 34 + script = '' 35 + tinc --config "$out" generate-keys 4096 >/dev/null 36 + mv "$out"/rsa_key.priv "$out"/retiolum.rsa_key.priv 37 + mv "$out"/ed25519_key.priv "$out"/retiolum.ed25519_key.priv 38 + mv "$out"/rsa_key.pub "$out"/retiolum.rsa_key.pub 39 + mv "$out"/ed25519_key.pub "$out"/retiolum.ed25519_key.pub 39 40 ''; 40 41 }; 41 42