os/hosts/pie/networking.nix

29 lines
622 B
Nix

{
flake,
config,
pkgs,
lib,
...
}: {
networking.useDHCP = false;
networking.hostId = "34234773";
networking.hostName = "pie";
networking.defaultGateway = {
address = "192.168.178.1";
interface = "enabcm6e4ei0";
};
networking.interfaces.enabcm6e4ei0 = {
ipv4.addresses = [
{ address = "192.168.178.2"; prefixLength = 32; }
];
ipv6.addresses = [
{ address = "2a02:908:5b1:e3c0:2::"; prefixLength = 128; }
{ address = "fe80:b12f:acab:1312:acab:2::"; prefixLength = 128; }
];
};
services.openssh.openFirewall = true;
services.openssh.allowSFTP = true;
}