From 3f017311191fe6d501ca2496a835d012f656ee9c Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Fri, 3 May 2024 10:20:34 +0200 Subject: [PATCH] lenovo/thinkpad/l480: init --- README.md | 1 + flake.nix | 1 + lenovo/thinkpad/l480/default.nix | 12 ++++++++++++ 3 files changed, 14 insertions(+) create mode 100644 lenovo/thinkpad/l480/default.nix diff --git a/README.md b/README.md index 1e1ba98..5ac2a82 100644 --- a/README.md +++ b/README.md @@ -187,6 +187,7 @@ See code for all available configurations. | [Lenovo ThinkPad L13](lenovo/thinkpad/l13) | `` | | [Lenovo ThinkPad L14 (AMD)](lenovo/thinkpad/l14/amd) | `` | | [Lenovo ThinkPad L14 (Intel)](lenovo/thinkpad/l14/intel) | `` | +| [Lenovo ThinkPad L480](lenovo/thinkpad/l480) | `` | | [Lenovo ThinkPad P1 Gen 3](lenovo/thinkpad/p1/3th-gen) | `` | | [Lenovo ThinkPad P14s AMD Gen 2](lenovo/thinkpad/p14s/amd/gen2) | `` | | [Lenovo ThinkPad P16s AMD Gen 1](lenovo/thinkpad/p16s/amd/gen1) | `` | diff --git a/flake.nix b/flake.nix index 123f9f2..8ac61b3 100644 --- a/flake.nix +++ b/flake.nix @@ -121,6 +121,7 @@ lenovo-thinkpad-l13-yoga = import ./lenovo/thinkpad/l13/yoga; lenovo-thinkpad-l14-amd = import ./lenovo/thinkpad/l14/amd; lenovo-thinkpad-l14-intel = import ./lenovo/thinkpad/l14/intel; + lenovo-thinkpad-l480 = import ./lenovo/thinkpad/l480; lenovo-thinkpad-p1 = import ./lenovo/thinkpad/p1; lenovo-thinkpad-p1-gen3 = import ./lenovo/thinkpad/p1/3th-gen; lenovo-thinkpad-p14s-amd-gen2 = import ./lenovo/thinkpad/p14s/amd/gen2; diff --git a/lenovo/thinkpad/l480/default.nix b/lenovo/thinkpad/l480/default.nix new file mode 100644 index 0000000..d000320 --- /dev/null +++ b/lenovo/thinkpad/l480/default.nix @@ -0,0 +1,12 @@ +{ lib, ... }: +{ + imports = [ + ../. + ../../../common/cpu/intel/kaby-lake + ../../../common/pc/laptop/ssd + ]; + + # available cpufreq governors: performance powersave + # The powersave mode locks the cpu to 700Mhz which is not really usable + powerManagement.cpuFreqGovernor = lib.mkDefault "performance"; +}