#18 Implement much faster nix-instantiate-based parsing.
Some checks failed
Deploy NixOS System Configurations to Silver-Flame Hosts / deploy (push) Failing after 1m58s

Trigger workflow.
This commit is contained in:
Joey Hafner 2024-10-29 16:03:12 -07:00
parent 08ed44657e
commit 1f02be1fd5
No known key found for this signature in database
2 changed files with 7 additions and 3 deletions

View File

@ -35,8 +35,12 @@ jobs:
chmod 600 /tmp/key
- name: Derive host IPs
run: |
nix eval --json .#deploy.nodes --apply 'builtins.attrValues' |\
jq -r '.[].hostname' | xargs echo > /tmp/hostlist
nix-shell -p nixfmt-rfc-style
nix-instantiate --parse flake.nix |\
nixfmt |\
grep 'hostname =' |\
cut -d'"' -f2 |\
xargs echo > /tmp/hostlist
- name: Add host keys to known_hosts
run: |
mkdir -p ~/.ssh && touch ~/.ssh/known_hosts && chmod 600 ~/.ssh/known_hosts

View File

@ -33,7 +33,7 @@
clusterInit = (hostConf.name == "bard");
serverAddr = (if hostConf.name == "bard" then "" else "https://192.168.1.31:6443");
# We are going to manage k8s resources separately from the infrastructure config
manifests = { };
manifests = { };
};
services.openiscsi = {
enable = false;