nixos-configs/modules/tailscale.nix
matt1432 981c4251a6
All checks were successful
Discord / discord commits (push) Has been skipped
chore: add TODOs and small refactor
2024-01-04 03:39:14 -05:00

29 lines
996 B
Nix

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