2023-05-12 23:54:24 +01:00
|
|
|
{ pkgs, config, lib, ... }:
|
2023-01-30 08:46:20 +00:00
|
|
|
|
|
|
|
let
|
2023-05-12 11:50:20 +01:00
|
|
|
domain = "devs.giugl.io";
|
2023-05-12 22:05:10 +01:00
|
|
|
|
|
|
|
utilities = import ./utilities.nix { inherit lib config; };
|
|
|
|
inherit (utilities) generateDeviceStrings;
|
2023-02-11 02:29:48 +00:00
|
|
|
in
|
|
|
|
{
|
2023-05-12 11:50:20 +01:00
|
|
|
architect = {
|
|
|
|
networks.tailscale = {
|
|
|
|
interface = "ts0";
|
|
|
|
net = "100.64.0.0/10";
|
|
|
|
|
|
|
|
devices = {
|
|
|
|
architect = { address = "100.64.0.1"; hostname = "architect.${domain}"; };
|
|
|
|
kmerr = { address = "100.64.0.2"; hostname = "kmerr.${domain}"; };
|
2024-01-30 23:20:27 +00:00
|
|
|
parallels = { address = "100.64.0.3"; hostname = "parallels.${domain}"; };
|
2023-05-12 11:50:20 +01:00
|
|
|
chuck = { address = "100.64.0.4"; hostname = "chuck.${domain}"; };
|
|
|
|
dodino = { address = "100.64.0.5"; hostname = "dodino.${domain}"; };
|
|
|
|
manduria = { address = "100.64.0.6"; hostname = "manduria.${domain}"; };
|
|
|
|
tommy = { address = "100.64.0.7"; hostname = "tommy.${domain}"; };
|
2024-01-30 23:20:27 +00:00
|
|
|
ucsb-workstation = { address = "100.64.0.8"; hostname = "ucsb-workstation.${domain}"; };
|
2023-05-12 11:50:20 +01:00
|
|
|
alfredo = { address = "100.64.0.9"; hostname = "alfredo.${domain}"; };
|
2024-01-30 23:20:27 +00:00
|
|
|
appletv = { address = "100.64.0.13"; hostname = "appletv.${domain}"; };
|
|
|
|
watkinshouse = { address = "100.64.0.14"; hostname = "watkinshouse.${domain}"; };
|
|
|
|
afsun = { address = "100.64.0.15"; hostname = "afsun.${domain}"; };
|
2023-05-12 11:50:20 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-02-14 23:19:52 +00:00
|
|
|
|
2023-01-30 08:46:20 +00:00
|
|
|
services = {
|
|
|
|
tailscale = {
|
|
|
|
enable = true;
|
2023-05-12 11:50:20 +01:00
|
|
|
interfaceName = config.architect.networks.tailscale.interface;
|
2023-05-12 23:54:24 +01:00
|
|
|
package = pkgs.unstablePkgs.tailscale;
|
2023-01-30 08:46:20 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-05-12 11:50:20 +01:00
|
|
|
networking.extraHosts = generateDeviceStrings config.architect.networks.tailscale.devices;
|
2023-02-11 02:29:48 +00:00
|
|
|
}
|