summaryrefslogblamecommitdiffstats
path: root/systems/jontop/default.nix
blob: 1ce9aafb0d7d2a7689c1bc51babf42e7c815c8c4 (plain) (tree)





























                                                                                                   
{ inputs, config, lib, modulesPath, pkgs, ... }:

{
  imports =
  [ # Include the results of the hardware scan.
    (modulesPath + "/installer/scan/not-detected.nix")
    inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x220
    ./filesystem.nix
  ];

  boot.loader.systemd-boot.enable = true;
  boot.loader.efi.canTouchEfiVariables = true;

  boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "usb_storage" "sd_mod" "sdhci_pci" ];
  boot.initrd.kernelModules = [ "i915" ];
  boot.kernelModules = [ "kvm-intel" ];
  boot.extraModulePackages = [ ];

  hardware.opengl = {
    enable = true;
  };

  hardware.bluetooth.enable = true;
  services.blueman.enable = true;

  programs.light.enable = true;

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