2024-01-09 13:13:04 -05:00
|
|
|
{config, ...}: let
|
|
|
|
inherit (config.vars) hostName mainUser;
|
|
|
|
in {
|
2023-10-20 13:03:36 -04:00
|
|
|
services = {
|
|
|
|
tailscale = {
|
|
|
|
enable = true;
|
2024-01-04 03:39:14 -05:00
|
|
|
# TODO: add authKeyFile to get extraUpFlags to work
|
2023-10-20 13:03:36 -04:00
|
|
|
extraUpFlags = [
|
|
|
|
"--login-server https://headscale.nelim.org"
|
|
|
|
"--operator=matt"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2023-12-01 12:39:16 -05:00
|
|
|
|
2024-01-09 13:13:04 -05:00
|
|
|
home-manager.users.${mainUser} = {
|
2024-01-04 03:39:14 -05:00
|
|
|
programs.bash.shellAliases = {
|
2024-01-23 08:06:18 -05:00
|
|
|
# Connect to headscale
|
2024-01-04 03:39:14 -05:00
|
|
|
tup = "tailscale up --login-server https://headscale.nelim.org";
|
2023-12-01 12:39:16 -05:00
|
|
|
|
2024-01-23 08:06:18 -05:00
|
|
|
# Desktop
|
2024-01-04 03:39:14 -05:00
|
|
|
pc = "ssh -t matt@binto 'tmux -2u new -At ${hostName}'";
|
2024-01-23 08:06:18 -05:00
|
|
|
|
|
|
|
# Misc Nix servers
|
2024-01-04 03:39:14 -05:00
|
|
|
oksys = "ssh -t matt@oksys 'tmux -2u new -At ${hostName}'";
|
|
|
|
servivi = "ssh -t matt@servivi 'tmux -2u new -At ${hostName}'";
|
2024-01-23 08:06:18 -05:00
|
|
|
|
|
|
|
# Cluster nodes
|
|
|
|
thingone = "ssh -t matt@thingone 'tmux -2u new -At ${hostName}'";
|
|
|
|
thingtwo = "ssh -t matt@thingtwo 'tmux -2u new -At ${hostName}'";
|
|
|
|
|
|
|
|
# Proxmox
|
2024-01-04 03:39:14 -05:00
|
|
|
pve = "ssh -t matt@pve 'tmux -2u new -At ${hostName}'";
|
2023-12-01 12:39:16 -05:00
|
|
|
|
2024-01-23 08:06:18 -05:00
|
|
|
# Proxmox LXC instances
|
2024-01-04 03:39:14 -05:00
|
|
|
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}'";
|
|
|
|
};
|
2023-12-01 12:39:16 -05:00
|
|
|
};
|
2023-10-20 13:03:36 -04:00
|
|
|
}
|