redo networking properly, god speed me
This commit is contained in:
@@ -105,32 +105,71 @@
|
||||
networking = {
|
||||
hostName = "lumiose"; # hostname
|
||||
hostId = "007f0200";
|
||||
networkmanager = {
|
||||
enable = true; # the goat
|
||||
dns = "systemd-resolved"; # the backup dancer!
|
||||
ensureProfiles.profiles = {
|
||||
vpn = {
|
||||
ethernet.mac-address = "02:ea:6c:3c:9f:cd";
|
||||
connection.type = "vlan";
|
||||
connection.id = "vpn";
|
||||
connection.interface-name = "enp37s0f1.69"; # or just "vpn-vlan"
|
||||
vlan.interface-name = "enp37s0f1.69"; # or just "vpn-vlan"
|
||||
vlan.parent = "enp37s0f1";
|
||||
vlan.id = 69;
|
||||
#ipv4.dns = "9.9.9.9";
|
||||
};
|
||||
# lan = {
|
||||
# ethernet.mac-address = "02:11:61:c5:31:b6";
|
||||
# connection.type = "vlan";
|
||||
# connection.id = "lan";
|
||||
# connection.interface-name = "enp37s0f1.20"; # or just "vpn-vlan"
|
||||
# vlan.interface-name = "enp37s0f1.20"; # or just "vpn-vlan"
|
||||
# vlan.parent = "enp37s0f1";
|
||||
# vlan.id = 20;
|
||||
# #ipv4.dns = "9.9.9.9";
|
||||
# };
|
||||
dhcpcd.enable = false;
|
||||
interfaces = {
|
||||
enp34s0 = {
|
||||
ipv4.addresses = [
|
||||
{
|
||||
address = "10.10.0.12";
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
};
|
||||
vlan10 = {
|
||||
ipv4.addresses = [
|
||||
{
|
||||
address = "10.10.0.11";
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
};
|
||||
vlan69 = {
|
||||
ipv4.addresses = [
|
||||
{
|
||||
address = "10.69.0.20";
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
vlans = {
|
||||
vlan10 = {
|
||||
id = 10;
|
||||
interface = "enp37s0f0";
|
||||
};
|
||||
vlan69 = {
|
||||
id = 69;
|
||||
interface = "enp37s0f0";
|
||||
};
|
||||
};
|
||||
defaultGateway = "10.10.0.1";
|
||||
nameservers = ["10.10.0.1"];
|
||||
# networkmanager = {
|
||||
# enable = true; # the goat
|
||||
# dns = "systemd-resolved"; # the backup dancer!
|
||||
# ensureProfiles.profiles = {
|
||||
# vpn = {
|
||||
# ethernet.mac-address = "02:ea:6c:3c:9f:cd";
|
||||
# connection.type = "vlan";
|
||||
# connection.id = "vpn";
|
||||
# connection.interface-name = "enp37s0f1.69"; # or just "vpn-vlan"
|
||||
# vlan.interface-name = "enp37s0f1.69"; # or just "vpn-vlan"
|
||||
# vlan.parent = "enp37s0f1";
|
||||
# vlan.id = 69;
|
||||
# #ipv4.dns = "9.9.9.9";
|
||||
# };
|
||||
# # lan = {
|
||||
# # ethernet.mac-address = "02:11:61:c5:31:b6";
|
||||
# # connection.type = "vlan";
|
||||
# # connection.id = "lan";
|
||||
# # connection.interface-name = "enp37s0f1.20"; # or just "vpn-vlan"
|
||||
# # vlan.interface-name = "enp37s0f1.20"; # or just "vpn-vlan"
|
||||
# # vlan.parent = "enp37s0f1";
|
||||
# # vlan.id = 20;
|
||||
# # #ipv4.dns = "9.9.9.9";
|
||||
# # };
|
||||
# };
|
||||
# };
|
||||
};
|
||||
|
||||
hardware.bluetooth.enable = true;
|
||||
|
||||
Reference in New Issue
Block a user