This repository has no description
0

Configure Feed

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

syncthing.nix: migrate from clan facts to vars

+11 -10
+11 -10
2configs/syncthing.nix
··· 73 73 user = "lass"; 74 74 }; 75 75 76 - clanCore.facts.services.syncthing = { 77 - secret."syncthing.key" = { }; 78 - secret."syncthing.cert" = { }; 79 - public."syncthing.pub" = { }; 80 - generator.path = with pkgs; [ 76 + clan.core.vars.generators.syncthing = { 77 + migrateFact = "syncthing"; 78 + files."syncthing.key" = { }; 79 + files."syncthing.cert" = { }; 80 + files."syncthing.pub".secret = false; 81 + runtimeInputs = with pkgs; [ 81 82 coreutils 82 83 gnugrep 83 84 syncthing 84 85 ]; 85 - generator.script = '' 86 - syncthing generate --config "$secrets" 87 - mv "$secrets"/key.pem "$secrets"/syncthing.key 88 - mv "$secrets"/cert.pem "$secrets"/syncthing.cert 89 - cat "$secrets"/config.xml | grep -oP '(?<=<device id=")[^"]+' | uniq > "$facts"/syncthing.pub 86 + script = '' 87 + syncthing generate --config "$out" 88 + mv "$out"/key.pem "$out"/syncthing.key 89 + mv "$out"/cert.pem "$out"/syncthing.cert 90 + cat "$out"/config.xml | grep -oP '(?<=<device id=")[^"]+' | uniq > "$out"/syncthing.pub 90 91 ''; 91 92 }; 92 93