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