# 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, flakeSelf, modulesPath, ... }: let # \x20 is the escape code for a space ssdLabel = ''Win\\x20Max\\x202\\x20SSD''; # You need to do fucky shit to import modules from the NUR # https://github.com/nix-community/NUR#using-the-flake-in-nixos nur = import flakeSelf.inputs.nur { nurpkgs = import flakeSelf.inputs.nixpkgs-unstable-raw { system = "x86_64-linux"; }; }; in { imports = [ (modulesPath + "/installer/scan/not-detected.nix") nur.repos.cryolitia.modules.bmi260 ]; 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"; 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_boot" = { mountPoint = "/boot"; label = ssdLabel; fsType = "btrfs"; options = [ "subvol=@boot" ]; };*/ "btrfs_home" = { mountPoint = "/home"; label = ssdLabel; fsType = "btrfs"; options = [ "subvol=@home" ]; }; "btrfs_nix" = { mountPoint = "/nix"; label = ssdLabel; fsType = "btrfs"; options = [ "subvol=@nix" ]; }; }; swapDevices = [ ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware = { cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; sensor.iio.bmi260.enable = true; }; }