# Do not modify this file! It was generated by ‘nixos-generate-config’ # and may be overwritten by future invocations. Please make changes # to /etc/nixos/configuration.nix instead. { config, lib, modulesPath, ... }: let # \x20 is the escape code for a space ssdLabel = ''Win\\x20Max\\x202\\x20SSD''; in { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "thunderbolt" "usbhid" "sdhci_pci"]; boot.initrd.kernelModules = []; boot.kernelModules = ["kvm-amd"]; boot.extraModulePackages = []; boot.initrd.luks.devices = { "SSD".device = "/dev/disk/by-label/wm2-enc"; "swap".device = "/dev/disk/by-label/wm2-swap"; }; fileSystems = { "efi_boot_partition" = { mountPoint = "/boot"; label = "winmax2boot"; fsType = "vfat"; }; /* Mount the root subvolume of the SSD This is helpful for getting things from my old Arch install, as well as for running btdu */ "btrfs_root_subvolume" = { mountPoint = "/mnt/ssd"; label = ssdLabel; fsType = "btrfs"; options = ["subvolid=5" "ro"]; }; "btrfs_root" = { mountPoint = "/"; label = ssdLabel; fsType = "btrfs"; options = ["subvol=@"]; }; "btrfs_persist" = { mountPoint = "/persist"; label = ssdLabel; fsType = "btrfs"; options = ["subvol=@persist"]; neededForBoot = true; }; "btrfs_home" = { mountPoint = "/home"; label = ssdLabel; fsType = "btrfs"; options = ["subvol=@home"]; }; "btrfs_nix" = { mountPoint = "/nix"; label = ssdLabel; fsType = "btrfs"; options = ["subvol=@nix"]; }; }; swapDevices = [ { device = "/dev/mapper/swap"; # only want to use the swap partition for hibernating priority = 0; } ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware = { cpu.amd = { updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; ryzen-smu.enable = true; }; sensor.iio.bmi260.enable = true; }; }