From 4abb25ea7d3876899e641a8a16281203bd164d53 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Sat, 23 Sep 2023 15:41:49 -0400 Subject: initial config for all 3 systems --- systems/jontop/default.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 systems/jontop/default.nix (limited to 'systems/jontop/default.nix') diff --git a/systems/jontop/default.nix b/systems/jontop/default.nix new file mode 100644 index 0000000..1ce9aaf --- /dev/null +++ b/systems/jontop/default.nix @@ -0,0 +1,30 @@ +{ 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; +} -- cgit v1.2.1