Skip to content

Commit

Permalink
update tailscale acl
Browse files Browse the repository at this point in the history
  • Loading branch information
azuline committed Dec 19, 2023
1 parent d096d0c commit 045779e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
1 change: 1 addition & 0 deletions home/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
curl
dasel
decrypt-zen
decrypt-frieren
dnsutils
exiftool
fd
Expand Down
16 changes: 16 additions & 0 deletions pkgs/decrypt-frieren/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{ writeShellScriptBin }:

writeShellScriptBin "decrypt-frieren" ''
#!/usr/bin/env bash
printf "waiting for stage 1 to become available.."
while ! timeout 2 ping -c 1 -n 147.135.10.32 &> /dev/null
do
printf "%c" "."
done
echo
echo "-----"
echo "stage 1 available, ssh-ing to decrypt"
ssh root@147.135.10.32 -p 2222
''
1 change: 1 addition & 0 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import nixpkgs {
bar-now-playing = prev.callPackage ./bar-now-playing { };
bar-loadavg = prev.callPackage ./bar-loadavg { };
bar-vpn = prev.callPackage ./bar-vpn { };
decrypt-frieren = prev.callPackage ./decrypt-frieren { };
decrypt-zen = prev.callPackage ./decrypt-zen { };
devenv = devenv.packages.${system}.devenv;
discord = prev.callPackage ./discord { inherit srcs; original = prev.discord; };
Expand Down
4 changes: 2 additions & 2 deletions tailscale.policy.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{

Check warning on line 1 in tailscale.policy.json

View workflow job for this annotation

GitHub Actions / acls

Policy File Modified Externally

The policy file was modified externally in the admin console.
"hosts": {
"splendor": "100.109.183.108",
"zen": "100.71.28.44"
"frieren": "100.84.146.55"
},
"groups": {
"group:admins": ["azuline@github"]
Expand All @@ -15,7 +15,7 @@
{
"action": "accept",
"src": ["tag:ci"],
"dst": ["zen:4646"]
"dst": ["frieren:4646"]
}
],
"ssh": [
Expand Down

0 comments on commit 045779e

Please sign in to comment.