hardware.nix (1490B)
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 { 6 flake.nixosModules.laptop-hardware = 7 { config, lib, pkgs, modulesPath, ... }: 8 9 { 10 imports = 11 [ (modulesPath + "/installer/scan/not-detected.nix") 12 ]; 13 14 boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" ]; 15 boot.initrd.kernelModules = [ ]; 16 boot.kernelModules = [ "kvm-amd" ]; 17 boot.extraModulePackages = [ ]; 18 19 fileSystems."/" = 20 { device = "/dev/disk/by-uuid/e2664576-4e65-4c79-ac1c-9e2fa9e12a26"; 21 fsType = "btrfs"; 22 }; 23 24 fileSystems."/home" = 25 { device = "/dev/disk/by-uuid/e2664576-4e65-4c79-ac1c-9e2fa9e12a26"; 26 fsType = "btrfs"; 27 options = [ "subvol=home" ]; 28 }; 29 30 fileSystems."/nix" = 31 { device = "/dev/disk/by-uuid/e2664576-4e65-4c79-ac1c-9e2fa9e12a26"; 32 fsType = "btrfs"; 33 options = [ "subvol=nix" ]; 34 }; 35 36 fileSystems."/boot" = 37 { device = "/dev/disk/by-uuid/D3FC-22C2"; 38 fsType = "vfat"; 39 options = [ "fmask=0077" "dmask=0077" ]; 40 }; 41 42 swapDevices = 43 [ { device = "/dev/disk/by-uuid/6aee8a42-a2a1-4d18-8f5c-695195e0c122"; } 44 ]; 45 46 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 47 hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; 48 } 49 ; 50 }