~abyxcos/nas.nix

b3bd6dbe2d4e3ad01059e6d301e34de6c053b8dc — abyxcos 1 year, 5 months ago 4c2f90b
Bond all four physical interfaces together so we can address them under a single ip/domain.
1 files changed, 7 insertions(+), 4 deletions(-)

M configuration.nix
M configuration.nix => configuration.nix +7 -4
@@ 19,6 19,8 @@
		kernelModules = [ "kvm-amd" "kvm-intel" "coretemp" "jc42" ];
	};

	# To create the storage pool:
	# virsh pool-define --file *.xml
	virtualisation = {
		libvirtd.enable = true;
		libvirtd.qemu.ovmf.enable = true;


@@ 34,6 36,8 @@
  # Set your time zone.
  # time.timeZone = "Europe/Amsterdam";

	# If networking breaks:
	# nixos-rebuild switch --option substitute false
	networking = {
		hostName = "nas"; # Define your hostname.
		hostId = "e058e4cd";


@@ 44,12 48,11 @@
			enp0s20f1.useDHCP = true;
			enp0s20f2.useDHCP = true;
			enp0s20f3.useDHCP = true;
			# virbr1.useDHCP = true;
			# br0.useDHCP = true;

			bond0.useDHCP = true;
		};

		# bridges.virbr1.interfaces = ["enp0s20f0"];
		# bridges.br0.interfaces = ["enp0s20f0" "enp0s20f2" "enp0s20f3"];
		bonds.bond0.interfaces = ["enp0s20f0" "enp0s20f1" "enp0s20f2" "enp0s20f3"];

		# Open ports in the firewall.
		firewall = {