# Do not modify this file! It was generated by ‘nixos-generate-config’ # and may be overwritten by future invocations. Please make changes # to /etc/nixos/configuration.nix instead. { config, lib, modulesPath, ... }: { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; boot = { initrd = { availableKernelModules = ["xhci_pci" "aacraid" "ahci" "usbhid" "nvme" "usb_storage" "sd_mod"]; kernelModules = []; }; kernelModules = ["kvm-amd"]; extraModulePackages = []; # Bootloader. loader = { systemd-boot.enable = true; efi = { canTouchEfiVariables = true; efiSysMountPoint = "/boot"; }; }; supportedFilesystems = ["zfs"]; zfs.extraPools = ["rpool"]; }; networking = { hostName = "defiant"; # Define your hostname. useNetworkd = true; }; systemd.network = { enable = true; netdevs = { "10-bond0" = { netdevConfig = { Kind = "bond"; Name = "bond0"; }; bondConfig = { Mode = "802.3ad"; TransmitHashPolicy = "layer3+4"; }; }; }; networks = { "30-eno1" = { matchConfig.Name = "eno1"; networkConfig.Bond = "bond0"; }; "30-eno2" = { matchConfig.Name = "eno2"; networkConfig.Bond = "bond0"; }; "40-bond0" = { matchConfig.Name = "bond0"; linkConfig = { RequiredForOnline = "degraded-carrier"; RequiredFamilyForOnline = "any"; }; networkConfig.DHCP = "yes"; address = [ "192.168.1.10/24" ]; gateway = ["192.168.1.1"]; dns = ["192.168.1.1"]; }; }; }; networking.networkmanager.enable = true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware = { # TODO: hardware graphics cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; }; }