nixos-configs/modules/tailscale.nix
matt1432 4884cad9a1
All checks were successful
Discord / discord commits (push) Has been skipped
fix: use ssh to have cursor changes on nvim
2023-12-26 04:00:25 -05:00

25 lines
945 B
Nix

{config, ...}: {
services = {
tailscale = {
enable = true;
extraUpFlags = [
"--login-server https://headscale.nelim.org"
"--operator=matt"
];
};
};
home-manager.users.${config.vars.user}.programs.bash.shellAliases = {
tup = "tailscale up --login-server https://headscale.nelim.org";
pc = "ssh -t matt@binto 'tmux -2u new -At ${config.vars.hostName}'";
oksys = "ssh -t matt@oksys 'tmux -2u new -At ${config.vars.hostName}'";
servivi = "ssh -t matt@servivi 'tmux -2u new -At ${config.vars.hostName}'";
pve = "ssh -t matt@pve 'tmux -2u new -At ${config.vars.hostName}'";
pod = "mosh matt@pve -- ssh -t -p 6768 matt@10.0.0.122 'tmux -2u new -At ${config.vars.hostName}'";
jelly = "mosh matt@pve -- ssh -t matt@10.0.0.123 'tmux -2u new -At ${config.vars.hostName}'";
qbit = "mosh matt@pve -- ssh -t matt@10.0.0.128 'tmux -2u new -At ${config.vars.hostName}'";
};
}