diff options
| -rw-r--r-- | justfile | 8 | ||||
| -rw-r--r-- | mitamae/node.akashi.json | 1 | ||||
| -rw-r--r-- | mitamae/node.pc168.json | 1 |
3 files changed, 7 insertions, 3 deletions
@@ -1,7 +1,9 @@ +default_host := trim_start_match(file_stem(shell('grep -R -l "$1" "$2"', '"hostname": "' + shell('uname -n') + '"', join(justfile_directory(), "mitamae"))), 'node.') + help: @just --list -update HOST: +update HOST=default_host: nix flake update git add -- ./flake.lock git commit -m "nix: update flake" @@ -10,14 +12,14 @@ update HOST: update-nur-packages: nix flake update nur-packages -sync HOST: +sync HOST=default_host: git fetch --all git stash save git switch -d origin/main git stash pop just switch "{{HOST}}" -switch HOST: +switch HOST=default_host: home-manager switch --flake ".#{{HOST}}" gc: diff --git a/mitamae/node.akashi.json b/mitamae/node.akashi.json index 5a9464b..e4ab458 100644 --- a/mitamae/node.akashi.json +++ b/mitamae/node.akashi.json @@ -1,5 +1,6 @@ { "name": "akashi", + "hostname": "akashi", "profile": "private", "targetArch": "x86_64-linux", "flake": { diff --git a/mitamae/node.pc168.json b/mitamae/node.pc168.json index 8c94ae1..5d915b7 100644 --- a/mitamae/node.pc168.json +++ b/mitamae/node.pc168.json @@ -1,5 +1,6 @@ { "name": "pc168", + "hostname": "PC168.local", "profile": "work", "targetArch": "aarch64-darwin", "flake": { |
