nixos-exporter: enable NATS cache sharing
When one host fetches the latest flake revision, it publishes to NATS and all other hosts receive the update immediately. This reduces redundant nix flake metadata calls across the fleet. - Add nkeys to devshell for key generation - Add nixos-exporter user to NATS HOMELAB account - Add Vault secret for NKey storage - Configure all hosts to use NATS for revision sharing - Update nixos-exporter input to version with NATS support Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -35,9 +35,18 @@
|
||||
HOMELAB = {
|
||||
jetstream = "enabled";
|
||||
users = [
|
||||
# alerttonotify (full access to HOMELAB account)
|
||||
{
|
||||
nkey = "UASLNKLWGICRTZMIXVD3RXLQ57XRIMCKBHP5V3PYFFRNO3E3BIJBCYMZ";
|
||||
}
|
||||
# nixos-exporter (restricted to nixos-exporter subjects)
|
||||
{
|
||||
nkey = "UBCL3ODHVERVZJNGUJ567YBBKHQZOV3LK3WO6TVVSGQOCTK2NQ3IJVRV"; # Replace with public key from: nix develop -c nk -gen user -pubout
|
||||
permissions = {
|
||||
publish = [ "nixos-exporter.>" ];
|
||||
subscribe = [ "nixos-exporter.>" ];
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user