From d1665077ac5354a02dad6a881f788af36b4b2603 Mon Sep 17 00:00:00 2001 From: June Clementine Strawberry Date: Thu, 26 Dec 2024 02:11:21 -0500 Subject: [PATCH] enable bluetooth, tlp, thermald, and latest linux kernel Signed-off-by: June Clementine Strawberry --- configuration.nix | 11 +++++++---- hardware-configuration.nix | 14 ++++++++++++++ 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/configuration.nix b/configuration.nix index 4c48e80..591ea0f 100644 --- a/configuration.nix +++ b/configuration.nix @@ -18,9 +18,9 @@ boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; - boot.kernelParams = [ - "acpi_backlight=native" - ]; + #boot.kernelParams = [ + # "acpi_backlight=video" + #]; networking.hostName = "strawberry"; # Define your hostname. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. @@ -86,6 +86,10 @@ services.fwupd.enable = true; services.fstrim.enable = true; + services.power-profiles-daemon.enable = false; + services.thermald.enable = true; + services.tlp.enable = true; + # Configure keymap in X11 services.xserver.xkb = { layout = "us"; @@ -158,7 +162,6 @@ }; }; - # Enable touchpad support (enabled default in most desktopManager). # services.xserver.libinput.enable = true; diff --git a/hardware-configuration.nix b/hardware-configuration.nix index 1fe1796..1856789 100644 --- a/hardware-configuration.nix +++ b/hardware-configuration.nix @@ -25,6 +25,11 @@ boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; + boot.kernelPackages = pkgs.linuxPackages_latest; + boot.extraModprobeConfig = '' + options thinkpad_acpi fan_control=1 + ''; + fileSystems."/" = { device = "/dev/disk/by-uuid/a24c5ca6-aa90-4985-b598-28dd07b5f12e"; fsType = "ext4"; @@ -130,5 +135,14 @@ hardware.enableRedistributableFirmware = true; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + hardware.bluetooth.enable = true; + hardware.bluetooth.powerOnBoot = true; + hardware.bluetooth.settings = { + General = { + Enable = "Source,Sink,Media,Socket"; + Experimental = true; + }; + }; + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; }