hosts: add vlan100

This commit is contained in:
Kabbone 2023-01-21 19:02:08 +01:00
parent 381c862e6f
commit 098c9f44cc
Signed by: Kabbone
SSH Key Fingerprint: SHA256:A5zPB5I6u5V78V51c362BBdCwhDhfDUVbt7NfKdjWBY
3 changed files with 35 additions and 6 deletions

View File

@ -110,10 +110,20 @@
networking = {
useDHCP = false; # Deprecated
hostName = "hades";
hostName = "nas";
domain = "home.opel-online.de";
networkmanager = {
enable = true;
};
timeServers = [
"192.168.2.1"
];
vlans = {
vlan100 = {
id = 100;
interface = "enp34s0";
};
};
interfaces = {
enp34s0 = {
useDHCP = true; # For versatility sake, manually edit IP on nm-applet.
@ -124,6 +134,10 @@
};
};
#defaultGateway = "192.168.0.1";
defaultGateway6 = {
address = "fe80::1";
interface = "enp34s0";
};
#nameservers = [ "192.168.0.4" ];
#firewall = {
# enable = false;

View File

@ -180,6 +180,15 @@
networkmanager = {
enable = false;
};
timeServers = [
"192.168.2.1"
];
vlans = {
vlan100 = {
id = 100;
interface = "enp0s31f6";
};
};
interfaces = {
enp0s31f6 = {
useDHCP = true; # For versatility sake, manually edit IP on nm-applet.
@ -194,12 +203,17 @@
};
};
# defaultGateway = "45.142.114.1";
# defaultGateway6 = {
# address = "fe80::1";
# interface = "ens18";
# };
#
defaultGateway6 = {
address = "fe80::1";
interface = "enp0s31f6";
};
# 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;
powerManagement = {

View File

@ -14,6 +14,7 @@
users.groups.libvirtd.members = [ "root" "${user}" ];
virtualisation = {
vswitch.enable = true;
libvirtd = {
enable = true; # Virtual drivers
#qemuPackage = pkgs.qemu_kvm; # Default