hardware.nix (1825B)
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 "xhci_pci" 19 "thunderbolt" 20 "nvme" 21 "usb_storage" 22 "sd_mod" 23 "rtsx_pci_sdmmc" 24 ]; 25 boot.initrd.kernelModules = [ ]; 26 boot.kernelModules = [ "kvm-intel" ]; 27 boot.extraModulePackages = [ ]; 28 29 fileSystems."/" = { 30 device = "zroot/root"; 31 fsType = "zfs"; 32 }; 33 34 fileSystems."/nix" = { 35 device = "zroot/nix"; 36 fsType = "zfs"; 37 }; 38 39 fileSystems."/var" = { 40 device = "zroot/var"; 41 fsType = "zfs"; 42 }; 43 44 fileSystems."/home" = { 45 device = "zroot/home"; 46 fsType = "zfs"; 47 }; 48 49 fileSystems."/boot" = { 50 device = "/dev/disk/by-uuid/BCF1-95FF"; 51 fsType = "vfat"; 52 options = [ 53 "fmask=0022" 54 "dmask=0022" 55 ]; 56 }; 57 58 swapDevices = [ 59 { device = "/dev/disk/by-uuid/7e66a653-5438-486f-99c6-0a1a51ef7d96"; } 60 ]; 61 62 # Enables DHCP on each ethernet and wireless interface. In case of scripted networking 63 # (the default) this is the recommended approach. When using systemd-networkd it's 64 # still possible to use this option, but it's recommended to use it in conjunction 65 # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. 66 networking.useDHCP = lib.mkDefault true; 67 # networking.interfaces.enp0s13f0u3u4.useDHCP = lib.mkDefault true; 68 # networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true; 69 70 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 71 hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; 72 }