hosts: add vlan100
This commit is contained in:
parent
381c862e6f
commit
098c9f44cc
@ -110,10 +110,20 @@
|
|||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
useDHCP = false; # Deprecated
|
useDHCP = false; # Deprecated
|
||||||
hostName = "hades";
|
hostName = "nas";
|
||||||
|
domain = "home.opel-online.de";
|
||||||
networkmanager = {
|
networkmanager = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
timeServers = [
|
||||||
|
"192.168.2.1"
|
||||||
|
];
|
||||||
|
vlans = {
|
||||||
|
vlan100 = {
|
||||||
|
id = 100;
|
||||||
|
interface = "enp34s0";
|
||||||
|
};
|
||||||
|
};
|
||||||
interfaces = {
|
interfaces = {
|
||||||
enp34s0 = {
|
enp34s0 = {
|
||||||
useDHCP = true; # For versatility sake, manually edit IP on nm-applet.
|
useDHCP = true; # For versatility sake, manually edit IP on nm-applet.
|
||||||
@ -124,6 +134,10 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
#defaultGateway = "192.168.0.1";
|
#defaultGateway = "192.168.0.1";
|
||||||
|
defaultGateway6 = {
|
||||||
|
address = "fe80::1";
|
||||||
|
interface = "enp34s0";
|
||||||
|
};
|
||||||
#nameservers = [ "192.168.0.4" ];
|
#nameservers = [ "192.168.0.4" ];
|
||||||
#firewall = {
|
#firewall = {
|
||||||
# enable = false;
|
# enable = false;
|
||||||
|
@ -180,6 +180,15 @@
|
|||||||
networkmanager = {
|
networkmanager = {
|
||||||
enable = false;
|
enable = false;
|
||||||
};
|
};
|
||||||
|
timeServers = [
|
||||||
|
"192.168.2.1"
|
||||||
|
];
|
||||||
|
vlans = {
|
||||||
|
vlan100 = {
|
||||||
|
id = 100;
|
||||||
|
interface = "enp0s31f6";
|
||||||
|
};
|
||||||
|
};
|
||||||
interfaces = {
|
interfaces = {
|
||||||
enp0s31f6 = {
|
enp0s31f6 = {
|
||||||
useDHCP = true; # For versatility sake, manually edit IP on nm-applet.
|
useDHCP = true; # For versatility sake, manually edit IP on nm-applet.
|
||||||
@ -194,12 +203,17 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
# defaultGateway = "45.142.114.1";
|
# defaultGateway = "45.142.114.1";
|
||||||
# defaultGateway6 = {
|
defaultGateway6 = {
|
||||||
# address = "fe80::1";
|
address = "fe80::1";
|
||||||
# interface = "ens18";
|
interface = "enp0s31f6";
|
||||||
# };
|
};
|
||||||
#
|
|
||||||
# nameservers = [ "9.9.9.9" "2620:fe::fe" ];
|
# nameservers = [ "9.9.9.9" "2620:fe::fe" ];
|
||||||
|
#firewall = {
|
||||||
|
# enable = false;
|
||||||
|
# #allowedUDPPorts = [ 53 67 ];
|
||||||
|
# #allowedTCPPorts = [ 53 80 443 9443 ];
|
||||||
|
#};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
powerManagement = {
|
powerManagement = {
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
users.groups.libvirtd.members = [ "root" "${user}" ];
|
users.groups.libvirtd.members = [ "root" "${user}" ];
|
||||||
|
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
|
vswitch.enable = true;
|
||||||
libvirtd = {
|
libvirtd = {
|
||||||
enable = true; # Virtual drivers
|
enable = true; # Virtual drivers
|
||||||
#qemuPackage = pkgs.qemu_kvm; # Default
|
#qemuPackage = pkgs.qemu_kvm; # Default
|
||||||
|
Loading…
Reference in New Issue
Block a user