From 365e05bda19d4e721f633a2a1c9440ad3017598b Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Wed, 15 Feb 2023 21:19:56 +0100 Subject: liku dead, mini alive --- mini/hardware-configuration.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 mini/hardware-configuration.nix (limited to 'mini/hardware-configuration.nix') diff --git a/mini/hardware-configuration.nix b/mini/hardware-configuration.nix new file mode 100644 index 0000000..e62774c --- /dev/null +++ b/mini/hardware-configuration.nix @@ -0,0 +1,30 @@ +# 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 = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/4FD5-6BF5"; + fsType = "vfat"; + }; + + swapDevices = [ ]; + + # Enables DHCP on the right ethernet interface. + networking.interfaces.eno1.useDHCP = true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + # high-resolution display + hardware.video.hidpi.enable = lib.mkDefault true; +} -- cgit v1.2.3