diff --git a/modules/terminal-life/bash/default.nix b/modules/terminal-life/bash/default.nix index 09d235bb..28570391 100644 --- a/modules/terminal-life/bash/default.nix +++ b/modules/terminal-life/bash/default.nix @@ -113,5 +113,6 @@ in { nixos-option = "nixos-option -I nixpkgs=${flake.self}/lib/compat"; myip = "dig +short myip.opendns.com @208.67.222.222 2>&1"; nnn = "nnn -d -e -H -r"; + tmate = ''tmate -f "''${XDG_CONFIG_HOME}/tmate/tmate.conf"''; }; } diff --git a/users/teutat3s/.config/tmate/config.nix b/users/teutat3s/.config/tmate/config.nix new file mode 100644 index 00000000..d1c53085 --- /dev/null +++ b/users/teutat3s/.config/tmate/config.nix @@ -0,0 +1,9 @@ +{ config, pkgs, ... }: +let +in +'' +set -g tmate-server-host "tmate.pub.solar" +set -g tmate-server-port 2222 +set -g tmate-server-rsa-fingerprint "SHA256:U/gAwAxU9lw25wb0FKJCK+sLjlGmt8rJGzX7Po/V9tQ" +set -g tmate-server-ed25519-fingerprint "SHA256:JYqAq1Rm1Jq1APiimDaork3pdda4euKfGizzR6jPxgg" +'' diff --git a/users/teutat3s/home.nix b/users/teutat3s/home.nix index dfd194a9..b321e0f3 100644 --- a/users/teutat3s/home.nix +++ b/users/teutat3s/home.nix @@ -55,6 +55,10 @@ in { inherit config; inherit pkgs; }; + xdg.configFile."tmate/tmate.conf".text = import ./.config/tmate/config.nix { + inherit config; + inherit pkgs; + }; xdg.configFile."watson/config".text = import ./.config/watson/config.nix { inherit config; inherit pkgs;