# 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, pkgs, modulesPath, ... }:

{
  imports =
    [ (modulesPath + "/installer/scan/not-detected.nix")
    ];

  boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "uas" "usb_storage" "sd_mod" ];
  boot.initrd.kernelModules = [ "amdgpu" ];
  boot.kernelModules = [ "kvm-amd" ];
  boot.extraModulePackages = [ ];
  # circuit tracks fix for buffer size
  # https://www.reddit.com/r/novationcircuit/comments/16l86v5/psa_components_on_linux_fix_for_sending_packs_and/
  boot.kernelParams = [ "snd_seq_midi.output_buffer_size=131072" ];   
  # Use xanmod kernel. List kernels by running:
  # `nix repl`
  # > :l <nixpkgs>
  # > pkgs.linuxPackages<Tab>
  # > ## Should display a list of available kernels
  # > :quit
  boot.kernelPackages = pkgs.linuxPackages_xanmod;

  fileSystems."/" =
    { device = "/dev/disk/by-uuid/ab6f54b1-f9ba-482a-b1b4-ac3ebdbfe751";
      fsType = "ext4";
    };

  fileSystems."/boot" =
    { device = "/dev/disk/by-uuid/69D1-3DFE";
      fsType = "vfat";
    };

  fileSystems."/home/nate/Games" =
    { device = "/dev/disk/by-uuid/d66b7920-2c29-400a-be51-0b3890ea63db";
      fsType = "ext4";
    };

  fileSystems."/home/nate/kage" = {
    device = "192.168.1.169:/kage";
    fsType = "nfs";
    options = [ "nfsvers=4.2" "x-systemd.automount" "noauto" "x-systemd.idle-timeout=600" ]; # lazy mounting and auto disconnect after 600 seconds
  };

  swapDevices = [ ];

  # 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.enp1s0f0u2u1u4.useDHCP = lib.mkDefault true;
  # networking.interfaces.enp3s0.useDHCP = lib.mkDefault true;
  # networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;

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