# 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,
  ...
}:
{
  imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];

  boot = {
    initrd.availableKernelModules = [
      "nvme"
      "xhci_pci"
      "ahci"
      "usb_storage"
      "sd_mod"
    ];
    initrd.kernelModules = [ ];
    kernelModules = [ "kvm-amd" ];
    extraModulePackages = [ ];
    resumeDevice = "/dev/mapper/swapDevice";
  };

  boot.initrd.luks.devices = {
    "rootDevice".device = "/dev/disk/by-partuuid/af218b48-86e2-d341-92d7-312a9863c28e";
    "swapDevice" = {
      device = "/dev/disk/by-partuuid/1cd51d10-9780-49aa-a98e-1621440a37bc";
      allowDiscards = true;
      bypassWorkqueues = true;
    };
  };

  fileSystems = {
    "/" = {
      device = "/dev/mapper/rootDevice";
      fsType = "btrfs";
      options = [ "subvol=@" ];
    };
    "/home" = {
      device = "/dev/mapper/rootDevice";
      fsType = "btrfs";
      options = [ "subvol=@home" ];
    };
    "/nix/store" = {
      device = "/dev/mapper/rootDevice";
      fsType = "btrfs";
      options = [ "subvol=@nixstore" ];
    };
    "/boot" = {
      device = "/dev/disk/by-partuuid/69f08489-2067-864a-911b-06f874fe18f1";
      fsType = "vfat";
    };
  };

  swapDevices = [ { device = "/dev/mapper/swapDevice"; } ];

  # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
  # (the default) this is the recommended approach. When using systemd-networkd it's
  # still possible to use this option, but it's recommended to use it in conjunction
  # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
  networking.useDHCP = lib.mkDefault true;
  # networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true;

  nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
  hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
