dot

vizie's NixOS desktop: Hyprland, CachyOS kernel and gaming tweaks

35 lines1020 bytesNix
1# Written by hand from the CachyOS install, in the shape nixos-generate-config
2# produces. During the install, compare it with the output of
3# nixos-generate-config --show-hardware-config --root /mnt
4# and keep the generated one if they differ.
5#
6# The file systems aren't here: disko.nix defines the drive's layout, and
7# disko turns it into fileSystems entries.
8{
9 config,
10 lib,
11 modulesPath,
12 ...
13}:
14{
15 imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
16
17 boot.initrd.availableKernelModules = [
18 "nvme"
19 "xhci_pci"
20 "ahci"
21 "usbhid"
22 "usb_storage"
23 "sd_mod"
24 ];
25 boot.kernelModules = [ "kvm-amd" ];
26
27 # The second drive (sdb, ext4) was commented out in CachyOS's fstab too.
28 # fileSystems."/home/vizie/Games" = {
29 # device = "/dev/disk/by-uuid/deadbeef-b2a7-406c-9704-4d07e2f38996";
30 # fsType = "ext4";
31 # };
32
33 hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
34 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
35}