2023-10-09 08:43:53 +00:00
|
|
|
{
|
|
|
|
flake,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
2023-11-08 17:52:09 +00:00
|
|
|
networking.useDHCP = false;
|
2023-10-09 08:43:53 +00:00
|
|
|
networking.hostId = "34234773";
|
|
|
|
networking.hostName = "pie";
|
|
|
|
networking.defaultGateway = {
|
|
|
|
address = "192.168.178.1";
|
|
|
|
interface = "enabcm6e4ei0";
|
|
|
|
};
|
|
|
|
|
2023-10-24 13:54:18 +00:00
|
|
|
networking.interfaces.enabcm6e4ei0 = {
|
2023-11-08 00:16:00 +00:00
|
|
|
ipv4.addresses = [
|
|
|
|
{ address = "192.168.178.2"; prefixLength = 32; }
|
|
|
|
];
|
|
|
|
ipv6.addresses = [
|
|
|
|
{ address = "2a02:908:5b1:e3c0:2::"; prefixLength = 128; }
|
2023-11-13 14:48:05 +00:00
|
|
|
{ address = "fe80:b12f:acab:1312:acab:2::"; prefixLength = 128; }
|
2023-11-08 00:16:00 +00:00
|
|
|
];
|
2023-11-01 15:27:29 +00:00
|
|
|
};
|
|
|
|
|
2024-02-16 10:18:35 +00:00
|
|
|
networking.hosts = {
|
|
|
|
"192.168.178.3" = [ "droppie-initrd.b12f.io" ];
|
|
|
|
};
|
|
|
|
|
2023-12-05 21:42:23 +00:00
|
|
|
services.openssh.allowSFTP = true;
|
2024-02-04 00:05:28 +00:00
|
|
|
|
|
|
|
age.secrets.wg-private-key.file = "${flake.self}/secrets/wg-private-pie.age";
|
|
|
|
|
2024-02-12 15:46:46 +00:00
|
|
|
pub-solar.wireguard.private = {
|
2024-02-06 08:44:41 +00:00
|
|
|
useDNS = false;
|
2024-02-04 00:05:28 +00:00
|
|
|
ownIPs = [
|
2024-02-08 18:23:22 +00:00
|
|
|
"10.13.12.2/32"
|
2024-02-04 00:05:28 +00:00
|
|
|
"fd00:b12f:acab:1312:acab:2::/96"
|
|
|
|
];
|
2024-02-12 15:46:46 +00:00
|
|
|
privateKeyFile = config.age.secrets.wg-private-key.path;
|
2024-02-04 00:05:28 +00:00
|
|
|
};
|
2023-10-09 08:43:53 +00:00
|
|
|
}
|