infrastructure

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

hardware-configuration.nix (1470B)


      1 # Do not modify this file!  It was generated by ‘nixos-generate-config’
      2 # and may be overwritten by future invocations.  Please make changes
      3 # to /etc/nixos/configuration.nix instead.
      4 {
      5   config,
      6   lib,
      7   pkgs,
      8   modulesPath,
      9   ...
     10 }:
     11 
     12 {
     13   imports = [
     14     (modulesPath + "/installer/scan/not-detected.nix")
     15   ];
     16 
     17   boot.initrd.availableKernelModules = [
     18     "nvme"
     19     "xhci_pci"
     20     "ahci"
     21     "usb_storage"
     22     "usbhid"
     23     "sd_mod"
     24   ];
     25   boot.initrd.kernelModules = [ ];
     26   boot.kernelModules = [ "kvm-amd" ];
     27   boot.extraModulePackages = [ ];
     28 
     29   fileSystems."/" = {
     30     device = "/dev/disk/by-uuid/e16560d0-c7d2-4f25-b056-02973b1554a6";
     31     fsType = "ext4";
     32   };
     33 
     34   fileSystems."/boot" = {
     35     device = "/dev/disk/by-uuid/8BFC-08B9";
     36     fsType = "vfat";
     37   };
     38 
     39   swapDevices = [ ];
     40 
     41   # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
     42   # (the default) this is the recommended approach. When using systemd-networkd it's
     43   # still possible to use this option, but it's recommended to use it in conjunction
     44   # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
     45   networking.useDHCP = lib.mkDefault true;
     46   # networking.interfaces.enp8s0.useDHCP = lib.mkDefault true;
     47   # networking.interfaces.wlp9s0.useDHCP = lib.mkDefault true;
     48 
     49   nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
     50   hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
     51 }