From 1c61f6f12b94516fb9329f2f9ea05c68e9e82cd9 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Wed, 7 Feb 2024 19:10:03 +0100 Subject: [PATCH] teutat3s: add tmate.pub.solar config --- modules/terminal-life/bash/default.nix | 1 + users/teutat3s/.config/tmate/config.nix | 9 +++++++++ users/teutat3s/home.nix | 4 ++++ 3 files changed, 14 insertions(+) create mode 100644 users/teutat3s/.config/tmate/config.nix 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;