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

  boot.initrd.kernelModules = [ ];
  boot.extraModulePackages = [ ];
  boot.kernelParams = [ "possible_cpus=${cpus}" ];

  fileSystems."/" = {
    device = "/dev/disk/by-uuid/3a4a7076-98e7-4ecd-bb07-7e182a04ceac";
    fsType = "ext4";
    options = [ "relatime" ];
  };

  fileSystems."/boot" = {
    device = "/dev/disk/by-uuid/D20D-B5B0";
    fsType = "vfat";
    options = [
      "umask=077"
      "relatime"
    ];
  };

  swapDevices = [
    {
      device = "/var/lib/swapfile";
      size = 48 * 1024;
    }
  ];

  environment.sessionVariables = {
    OMP_NUM_THREADS = cpus;
  };

  environment.systemPackages = with pkgs; [ mcontrolcenter ];

  grimmShared = {
    screens = {
      external = {
        id = "HDMI-A-1";
        pos = "0 0";
      };

      internal = {
        id = "eDP-1";
        fps = [
          144
          60
        ];
      };
    };
    laptop_hardware.enable = true;
  };

  hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}