41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{
|
|
syscfg = {
|
|
hostname = "gateway";
|
|
type = "nixos";
|
|
system = "x86_64-linux";
|
|
defaultUser = "sora";
|
|
users = [{
|
|
username = "sora";
|
|
pubssh = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINrrUB0KBjeAKPVG2Bdcm4mI9AMab7y97SOCdEHGogYv sora@gateway";
|
|
wm = "-";
|
|
git = {
|
|
email = "soraefir+git@helcel";
|
|
username = "soraefir";
|
|
key = "4E241635F8EDD2919D2FB44CA362EA0491E2EEA0";
|
|
};
|
|
}];
|
|
make = {
|
|
cli = true;
|
|
};
|
|
net = {
|
|
wlp = { enable = false; };
|
|
wg = {
|
|
enable = true;
|
|
ip4 = "10.10.1.1/32";
|
|
ip6 = "fd10:10:10::1/128";
|
|
pubkey = "NFBJvYXZC+bd62jhrKnM7/pugidWhgR6+C5qIiUiq3Q=";
|
|
server = {
|
|
enable = true;
|
|
peers = ["avalon" "iriy" "valinor"];
|
|
forward = [
|
|
[ "ens3" "10.10.1.2" "fd10:10:10::2" 2222 2222 ] # SSH
|
|
[ "ens3" "10.10.1.2" "fd10:10:10::2" 80 80 ] # HTTP
|
|
[ "ens3" "10.10.1.2" "fd10:10:10::2" 443 443 ] # HTTPS
|
|
[ "ens3" "10.10.1.2" "fd10:10:10::2" 3979 3979 ] # OTTD
|
|
];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|