diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2024-05-05 14:02:34 +0530 |
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2024-05-05 14:02:34 +0530 |
| commit | 9b39ceeed85c109094daec75d4da071a654a71f7 (patch) | |
| tree | 2cbfec938c6862b9a5fc745ceac9ebcf1e1f4750 /modules | |
| parent | 6bf11a2958cf297b5f9f64572a83c5cb34848406 (diff) | |
update
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/amdgpu.nix | 4 | ||||
| -rw-r--r-- | modules/core/audio.nix | 2 | ||||
| -rw-r--r-- | modules/core/global.nix | 2 | ||||
| -rw-r--r-- | modules/laptop.nix | 16 |
4 files changed, 18 insertions, 6 deletions
diff --git a/modules/amdgpu.nix b/modules/amdgpu.nix index 6c1f109..bc29a29 100644 --- a/modules/amdgpu.nix +++ b/modules/amdgpu.nix @@ -24,6 +24,6 @@ "L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}" ]; - boot.kernelPackages = pkgs.linuxPackages_zen; - boot.kernelParams = [ "pcie_acs_override=downstream,multifunction"]; + boot.kernelPackages = pkgs.linuxPackages_xanmod; + boot.kernelParams = [ "pcie_acs_override=downstream,multifunction" ]; } diff --git a/modules/core/audio.nix b/modules/core/audio.nix index 9e45d9e..ae01cc7 100644 --- a/modules/core/audio.nix +++ b/modules/core/audio.nix @@ -9,6 +9,6 @@ alsa.support32Bit = true; pulse.enable = true; jack.enable = true; - wireplumber.enable = true; + # wireplumber.enable = true; }; } diff --git a/modules/core/global.nix b/modules/core/global.nix index 138d970..2e7ed90 100644 --- a/modules/core/global.nix +++ b/modules/core/global.nix @@ -11,8 +11,6 @@ in { nixPath = [ "nixpkgs=${nix_path}" ]; }; - boot.kernelParams = [ "quiet" "splash" ]; - systemd.tmpfiles.rules = [ "L+ ${nix_path} - - - - ${pkgs.path}" ]; diff --git a/modules/laptop.nix b/modules/laptop.nix index f619d78..4eb401b 100644 --- a/modules/laptop.nix +++ b/modules/laptop.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ pkgs, config, ... }: { services.tlp = { @@ -10,10 +10,24 @@ CPU_ENERGY_PERF_POLICY_ON_BAT = "power"; CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; + PLATFORM_PROFILE_ON_AC = "performance"; + PLATFORM_PROFILE_ON_BAT = "low-power"; + + CPU_BOOST_ON_AC = 1; + CPU_BOOST_ON_BAT = 0; + + CPU_HWP_DYN_BOOST_ON_AC = 1; + CPU_HWP_DYN_BOOST_ON_BAT = 0; + CPU_MIN_PERF_ON_AC = 0; CPU_MAX_PERF_ON_AC = 100; CPU_MIN_PERF_ON_BAT = 0; CPU_MAX_PERF_ON_BAT = 20; }; }; + + boot = { + kernelModules = [ "acpi_call" ]; + extraModulePackages = [ config.boot.kernelPackages.acpi_call ]; + }; } |
