networking bs
This commit is contained in:
@@ -106,70 +106,55 @@
|
|||||||
hostName = "lumiose"; # hostname
|
hostName = "lumiose"; # hostname
|
||||||
hostId = "007f0200";
|
hostId = "007f0200";
|
||||||
dhcpcd.enable = false;
|
dhcpcd.enable = false;
|
||||||
interfaces = {
|
# interfaces = {
|
||||||
enp34s0 = {
|
# enp34s0 = {
|
||||||
ipv4.addresses = [
|
# useDHCP = true;
|
||||||
{
|
# };
|
||||||
address = "10.10.0.12";
|
# vlan10 = {
|
||||||
prefixLength = 24;
|
# useDHCP = true;
|
||||||
}
|
# };
|
||||||
];
|
# vlan69 = {
|
||||||
};
|
# useDHCP = true;
|
||||||
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";
|
|
||||||
# # };
|
|
||||||
# };
|
# };
|
||||||
# };
|
# };
|
||||||
|
# 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;
|
hardware.bluetooth.enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user