# Written by hand from the CachyOS install, in the shape nixos-generate-config # produces. During the install, compare it with the output of # nixos-generate-config --show-hardware-config --root /mnt # and keep the generated one if they differ. # # The file systems aren't here: disko.nix defines the drive's layout, and # disko turns it into fileSystems entries. { config, lib, modulesPath, ... }: { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; boot.kernelModules = [ "kvm-amd" ]; # The second drive (sdb, ext4) was commented out in CachyOS's fstab too. # fileSystems."/home/vizie/Games" = { # device = "/dev/disk/by-uuid/deadbeef-b2a7-406c-9704-4d07e2f38996"; # fsType = "ext4"; # }; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; }