Compare commits
No commits in common. "05bca5b139e6b685fe644a9b74289fae8df9b0ec" and "f108181be1abfa39e60589b8de06812a3acac747" have entirely different histories.
05bca5b139
...
f108181be1
3 changed files with 3 additions and 25 deletions
3
.terraform/plugin_path
Normal file
3
.terraform/plugin_path
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
[
|
||||
"/nix/store/qamki29d3xfgz3100s3hnb3kxay7bcgl-opentofu-1.9.1/libexec/terraform-providers"
|
||||
]
|
||||
24
justfile
24
justfile
|
|
@ -16,30 +16,6 @@ update:
|
|||
lint:
|
||||
nix fmt
|
||||
|
||||
# gather ips
|
||||
[group('dev')]
|
||||
gather:
|
||||
ip-gather
|
||||
|
||||
# gather ips
|
||||
[group('dev')]
|
||||
get-key machine:
|
||||
ssh-keyscan -t ed25519 olympus 2>/dev/null | ssh-to-age
|
||||
|
||||
# Auto SSH resolution
|
||||
[group('dev')]
|
||||
ssh host:
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
addr=$(jq -r --arg host "{{host}}" '.[$host] // empty' hosts.json)
|
||||
if [ -n "$addr" ]; then
|
||||
echo "Connecting to $addr for {{host}}"
|
||||
ssh "$addr"
|
||||
else
|
||||
echo "Hostname '{{host}}' not found in hosts.json"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check nix flake
|
||||
[group('dev')]
|
||||
check:
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
name = "nixos-unified-template-shell";
|
||||
meta.description = "Shell environment for modifying this Nix configuration";
|
||||
packages = with pkgs; [
|
||||
jq
|
||||
self'.packages.ip-gather
|
||||
deploy-rs
|
||||
ssh-to-age
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue