2023-12-25 14:17:30 +01:00
|
|
|
{ inputs, outputs, lib, pkgs, config, ... }:
|
2023-10-16 20:42:10 +02:00
|
|
|
{
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
];
|
|
|
|
|
2024-07-20 17:02:26 +02:00
|
|
|
networking.extraHosts = ''
|
|
|
|
127.0.0.1 jeeves.local
|
|
|
|
'';
|
|
|
|
|
2024-03-17 22:43:11 +01:00
|
|
|
# networking.nftables.enable = true;
|
|
|
|
|
2023-12-25 14:17:30 +01:00
|
|
|
age.secrets."home.wifi.env" = {
|
|
|
|
rekeyFile = "${inputs.self}/secrets/home/wifi/env.age";
|
|
|
|
};
|
2023-10-16 20:42:10 +02:00
|
|
|
networking.wireless = {
|
|
|
|
iwd.enable = true;
|
2023-12-25 14:17:30 +01:00
|
|
|
environmentFile = config.age.secrets."home.wifi.env".path;
|
2023-10-16 20:42:10 +02:00
|
|
|
networks = {
|
|
|
|
home = {
|
|
|
|
ssid = "@HOME_WIFI_SSID@";
|
|
|
|
psk = "@HOME_WIFI_PSK@";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-11-17 15:03:25 +01:00
|
|
|
networking.useNetworkd = true;
|
2023-10-16 20:42:10 +02:00
|
|
|
systemd.network = {
|
|
|
|
enable = true;
|
|
|
|
wait-online = {
|
|
|
|
enable = false;
|
|
|
|
anyInterface = true;
|
|
|
|
ignoredInterfaces = [
|
|
|
|
"eth0"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
networks."10-eth0" = {
|
|
|
|
matchConfig.Name = "eth0";
|
|
|
|
networkConfig.DHCP = "yes";
|
2024-03-17 22:43:11 +01:00
|
|
|
networkConfig.DHCPServer = "yes";
|
2023-10-16 20:42:10 +02:00
|
|
|
};
|
|
|
|
links."10-eth0" = {
|
|
|
|
matchConfig.PermanentMACAddress = "04:7c:16:80:3c:2c";
|
|
|
|
linkConfig.Name = "eth0"; # "enp8s0";
|
|
|
|
};
|
|
|
|
|
|
|
|
networks."15-wan0" = {
|
|
|
|
matchConfig.Name = "wan0";
|
|
|
|
networkConfig.DHCP = "yes";
|
|
|
|
};
|
|
|
|
links."15-wan0" = {
|
|
|
|
matchConfig.PermanentMACAddress = "bc:f4:d4:40:5c:ed";
|
|
|
|
linkConfig.Name = "wan0"; # "wlp15s0";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|