add iso, change networking for fw

This commit is contained in:
2023-11-28 15:44:54 +01:00
parent d1437de4b1
commit c45fb4d230
6 changed files with 177 additions and 15 deletions

View File

@@ -1,9 +1,19 @@
{ modulesPath, ... }:
{
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
boot.loader.grub.device = "/dev/sda";
boot.loader.systemd-boot.enable = true;
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "vmw_pvscsi" "xen_blkfront" ];
boot.initrd.kernelModules = [ "nvme" ];
fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; };
fileSystems."/boot" = {
device = "/dev/disk/by-label/boot";
fsType = "vfat";
};
fileSystems."/" = {
device = "/dev/disk/by-partlabel/NIXOS";
fsType = "ext4";
};
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View File

@@ -1,41 +1,41 @@
{ ... }: {
systemd.network.links."10-wan" = {
matchConfig.PermanentMACAddress = "a8:b8:e0:00:43:c1";
linkConfig.Name = "wan";
};
networking = {
useDHCP = false;
nameservers = [ "9.9.9.9" "149.112.112.112" ];
# Define VLANS
vlans = {
wan = {
id = 10;
interface = "enp1s0";
};
lan = {
id = 1;
interface = "enp2s0";
interface = "enp3s0";
};
server = {
id = 2;
interface = "enp3s0";
interface = "enp4s0";
};
multimedia = {
id = 3;
interface = "enp4s0";
interface = "enp5s0";
};
smart = {
id = 4094;
interface = "enp4s0";
interface = "enp5s0";
};
guest = {
id = 100;
interface = "enp4s0";
interface = "enp5s0";
};
};
interfaces = {
# Don't request DHCP on the physical interfaces
enp1s0.useDHCP = false;
enp2s0.useDHCP = false;
enp3s0.useDHCP = false;
enp4s0.useDHCP = false;
enp5s0.useDHCP = false;
# Handle the VLANs
wan.useDHCP = true;