From b4b554029cee53e8e80826925af089d2c3dbc297 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Thu, 10 Nov 2022 08:22:42 -0600 Subject: [PATCH] Port forwarding and aliases --- home/ssh.nix | 9 ++++++++- home/xonsh.nix | 3 +++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/home/ssh.nix b/home/ssh.nix index 3703dc3..05a513a 100644 --- a/home/ssh.nix +++ b/home/ssh.nix @@ -12,8 +12,15 @@ nas = { user = "admin"; }; owned = { user = "greg"; }; in { + inherit nas; + + "*" = { + dynamicForwards = [ { + port = 10240; + } ]; + }; + "10.42.1.4" = lib.hm.dag.entryBefore ["10.42.*"] nas; - nas = nas; "nas.thehellings.lan" = nas; "nas.greg-hellings.gmail.com.beta.tailscale.net" = nas; chronicles = nas; diff --git a/home/xonsh.nix b/home/xonsh.nix index ca0aac4..8847cdc 100644 --- a/home/xonsh.nix +++ b/home/xonsh.nix @@ -31,17 +31,20 @@ aliases = { ac = "vox activate"; + cblack = "compass workspace run src/python3/uc/tools:run_black --"; cbuild = "compass workspace build"; cci = "./scripts/circleci-checks.py"; crun = "compass workspace run"; ctest = "compass workspace test"; cylint = "./scripts/run_yaml_lint.py"; + d = "vox deactivate"; devroles = "cd ~/src/ansible_collections/devroles"; dirflake = "nix flake new -t github:nix-community/nix-direnv"; ll = "ls -l"; molcol = "molecule -c ../../tests/molecule.yml"; + nixup = "nix flake lock --update-input"; pa = "cd ~/src/packaging"; tsup = "sudo tailscale up"; tspub = "sudo tailscale up --exit-node=linode";