# 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"
    "mpt3sas"
    "xhci_pci"
    "ahci"
    "uas"
    "sd_mod"
  ];
  boot.initrd.kernelModules = [ ];
  boot.kernelModules = [ "kvm-amd" ];
  boot.extraModulePackages = [ ];

  fileSystems."/" = {
    device = "none";
    fsType = "tmpfs";
    options = [
      "defaults"
      "size=25%"
      "mode=755"
    ];
  };

  fileSystems."/boot" = {
    device = "/dev/disk/by-uuid/C6E9-7371";
    fsType = "vfat";
  };

  fileSystems."/nix" = {
    device = "/dev/disk/by-uuid/85e2fa30-816f-4457-80a1-9f88b9ab77b3";
    fsType = "btrfs";
    options = [
      "subvol=nix"
      "compress-force=zstd"
      "noatime"
    ];
  };

  fileSystems."/etc" = {
    device = "/dev/disk/by-uuid/85e2fa30-816f-4457-80a1-9f88b9ab77b3";
    fsType = "btrfs";
    options = [
      "subvol=etc"
      "compress-force=zstd"
      "noatime"
    ];
  };

  fileSystems."/root" = {
    device = "/dev/disk/by-uuid/85e2fa30-816f-4457-80a1-9f88b9ab77b3";
    fsType = "btrfs";
    options = [
      "subvol=root"
      "compress-force=zstd"
      "noatime"
    ];
  };

  fileSystems."/var/log" = {
    device = "/dev/disk/by-uuid/85e2fa30-816f-4457-80a1-9f88b9ab77b3";
    fsType = "btrfs";
    options = [
      "subvol=log"
      "compress-force=zstd"
      "noatime"
    ];
  };

  fileSystems."/home" = {
    device = "/dev/disk/by-uuid/85e2fa30-816f-4457-80a1-9f88b9ab77b3";
    fsType = "btrfs";
    options = [
      "subvol=home"
      "compress-force=zstd"
    ];
  };

  fileSystems."/tmp" = {
    device = "/dev/disk/by-uuid/8e3841fc-9222-443c-af72-075dd8ac07f2";
    fsType = "btrfs";
    options = [
      "compress-force=zstd"
      "noatime"
    ];
  };

  swapDevices = [
    {
      device = "/dev/disk/by-id/ata-Samsung_SSD_860_EVO_500GB_S3Z1NW0KA10457X-part2";
      randomEncryption.enable = true;
    }
  ];

  # 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.docker0.useDHCP = lib.mkDefault true;
  # networking.interfaces.enp7s0.useDHCP = lib.mkDefault true;
  # networking.interfaces.podman0.useDHCP = lib.mkDefault true;
  # networking.interfaces.veth0.useDHCP = lib.mkDefault true;
  # networking.interfaces.veth1.useDHCP = lib.mkDefault true;
  # networking.interfaces.veth2.useDHCP = lib.mkDefault true;
  # networking.interfaces.veth3.useDHCP = lib.mkDefault true;
  # networking.interfaces.veth4.useDHCP = lib.mkDefault true;
  # networking.interfaces.veth5.useDHCP = lib.mkDefault true;
  # networking.interfaces.veth6.useDHCP = lib.mkDefault true;
  # networking.interfaces.veth7.useDHCP = lib.mkDefault true;
  # networking.interfaces.vethd3ca67e.useDHCP = lib.mkDefault true;
  # networking.interfaces.wlp6s0.useDHCP = lib.mkDefault true;
  # networking.interfaces.wlp7s0.useDHCP = lib.mkDefault true;

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