nix-config/hosts/server8/hardware-configuration.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

62 lines
2.0 KiB
Nix
Raw Normal View History

2022-11-24 18:48:34 +01:00
# 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, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ahci" "megaraid_sas" "nvme" "usb_storage" "usbhid" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "server8_root/nixos";
fsType = "zfs";
};
fileSystems."/var" =
{ device = "server8_root/nixos/var";
fsType = "zfs";
};
fileSystems."/nix" =
{ device = "server8_root/nixos/nix";
fsType = "zfs";
};
fileSystems."/nix/store" =
{ device = "server8_root/nixos/nix/store";
fsType = "zfs";
};
fileSystems."/nix/var" =
{ device = "server8_root/nixos/nix/var";
fsType = "zfs";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/984ea997-9591-4efb-8212-8381ad829d0b";
fsType = "ext2";
};
swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp5s0f0.useDHCP = lib.mkDefault true;
# networking.interfaces.enp5s0f1.useDHCP = lib.mkDefault true;
# networking.interfaces.enp5s0f2.useDHCP = lib.mkDefault true;
# networking.interfaces.enp5s0f3.useDHCP = lib.mkDefault true;
# networking.interfaces.enp8s0f0.useDHCP = lib.mkDefault true;
# networking.interfaces.enp8s0f1.useDHCP = lib.mkDefault true;
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}