From 373df94ffe6d9a949a706bd365aefdc00a0cf36d Mon Sep 17 00:00:00 2001 From: iFargle Date: Fri, 5 Jan 2024 12:26:13 +0900 Subject: [PATCH] Update AMD laptop --- .../desktops/hyprland/themes/stylix/wlogout-conf.nix | 1 - nixos/common/services/tlp.nix | 4 ++-- nixos/hosts/nixos-framework/default.nix | 11 +++++------ 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/home-manager/common/desktops/hyprland/themes/stylix/wlogout-conf.nix b/home-manager/common/desktops/hyprland/themes/stylix/wlogout-conf.nix index 391fc8ef..f6deb657 100644 --- a/home-manager/common/desktops/hyprland/themes/stylix/wlogout-conf.nix +++ b/home-manager/common/desktops/hyprland/themes/stylix/wlogout-conf.nix @@ -21,7 +21,6 @@ background-position: center; background-size: 25%; } - button:active, button:hover { background-color: #${config.lib.stylix.colors.base08}; outline-style: none; diff --git a/nixos/common/services/tlp.nix b/nixos/common/services/tlp.nix index e544a15a..91a49aa1 100644 --- a/nixos/common/services/tlp.nix +++ b/nixos/common/services/tlp.nix @@ -4,8 +4,8 @@ enable = true; settings = { # Specific to the Framework, since I have it limited to 80% charge in the BIOS - START_CHARGE_THRESH_BAT0 = 70; - STOP_CHARGE_THRESH_BAT0 = 79; + # START_CHARGE_THRESH_BAT0 = 70; + # STOP_CHARGE_THRESH_BAT0 = 79; CPU_BOOST_ON_BAT = 0; CPU_HWP_DYN_BOOST_ON_BAT = 0; diff --git a/nixos/hosts/nixos-framework/default.nix b/nixos/hosts/nixos-framework/default.nix index 9308274a..c15186af 100644 --- a/nixos/hosts/nixos-framework/default.nix +++ b/nixos/hosts/nixos-framework/default.nix @@ -9,23 +9,22 @@ ../../common/services/powertop.nix ../../common/services/fwupd.nix ../../common/services/podman.nix + ../../common/services/tlp.nix ]; # steam , etc nixpkgs.config.allowUnfree = true; - boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "thunderbolt" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; + boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "thunderbolt" ]; boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-intel" "acpi_call" ]; - boot.extraModulePackages = with config.boot.kernelPackages; [ acpi_call ]; + boot.kernelModules = [ "kvm-amd" "acpi_call" ]; + # boot.extraModulePackages = with config.boot.kernelPackages; [ acpi_call ]; networking.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand"; hardware.keyboard.zsa.enable = true; - - # hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; - + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enbleRedistributableFirmware; # Set your time zone. time.timeZone = "Asia/Tokyo";