nixos-config/hosts/x86_64-linux/beleth/networking.nix

58 lines
1.2 KiB
Nix
Raw Permalink Normal View History

2024-06-09 20:48:07 +02:00
{
config,
lib,
inputs,
...
}: {
2024-06-19 15:34:15 +02:00
# imports = [./wireguard.nix];
services.openssh.settings.PasswordAuthentication = false;
2024-08-23 17:42:21 +02:00
# networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
networking = {
2024-09-09 20:41:48 +02:00
# bridges = {
# vmbr0 = {
# interfaces = [ "enp0s31f6" ];
# };
# };
2024-08-23 17:42:21 +02:00
# useDhCP = lib.mkDefault true;
interfaces = {
2024-09-09 20:41:48 +02:00
# vmbr0 = {
# useDHCP = lib.mkDefault true;
# };
enp0s31f6 = {
ipv4 = {
addresses = [
{
address = "88.99.90.90";
prefixLength = 26;
}
];
};
ipv6 = {
addresses = [
{
2024-06-15 22:59:09 +02:00
address = "2a01:4f8:10a:1aab::2";
2024-06-09 21:48:40 +02:00
prefixLength = 64;
}
];
};
2024-06-09 20:48:07 +02:00
};
};
defaultGateway = {
interface = "enp0s31f6";
address = "88.99.90.65";
};
defaultGateway6 = {
interface = "enp0s31f6";
address = "fe80::1";
};
2024-06-09 20:48:07 +02:00
};
services.resolved.enable = true;
services.resolved.extraConfig = ''
DNS=185.12.64.1 185.12.64.2 2a01:4ff:ff00::add:1 2a01:4ff:ff00::add:2
'';
2024-06-09 20:48:07 +02:00
}