1e2e2bdd35
grep -- '- &' .sops.yaml | cut -d'&' -f2 | grep _host | sed 's/_host//' | xargs -n2 clan secrets machines add for i in secrets/*.yaml; do host=$(basename $i .yaml); clan secrets import-sops $i --machine $host --user makefu --prefix ${host}-;done for i in secrets/*.yaml; do host=$(basename $i .yaml) ;clan secrets groups add-machine common "$host";done
12 lines
268 B
Nix
12 lines
268 B
Nix
let
|
|
disko = import (builtins.fetchGit {
|
|
url = https://cgit.lassul.us/disko/;
|
|
rev = "9c9b62e15e4ac11d4379e66b974f1389daf939fe";
|
|
});
|
|
|
|
cfg = builtins.fromJSON (builtins.readFile ../../hardware/tsp-disk.json);
|
|
in ''
|
|
${disko.create cfg}
|
|
${disko.mount cfg}
|
|
''
|