From dc856e398053e61ee7a63e85e09ba9270e103189 Mon Sep 17 00:00:00 2001 From: clerie Date: Sun, 10 Jul 2022 20:36:30 +0200 Subject: [PATCH] Add monitoring hardware configuration --- hosts/monitoring/hardware-configuration.nix | 36 +++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 hosts/monitoring/hardware-configuration.nix diff --git a/hosts/monitoring/hardware-configuration.nix b/hosts/monitoring/hardware-configuration.nix new file mode 100644 index 0000000..655bb27 --- /dev/null +++ b/hosts/monitoring/hardware-configuration.nix @@ -0,0 +1,36 @@ +# 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 + "/profiles/qemu-guest.nix") + ]; + + boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/121f5b0c-2726-4d38-befe-52a27ef310a8"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/E1EE-618A"; + fsType = "vfat"; + }; + + 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..useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.ens18.useDHCP = lib.mkDefault true; + + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}