summaryrefslogtreecommitdiff
path: root/machines/magician
diff options
context:
space:
mode:
authorAlexander Kassouni <alex@kassouni.net>2026-09-26 11:41:51 -0700
committerAlexander Kassouni <alex@kassouni.net>2026-09-26 11:41:51 -0700
commitce3ce1cc3f3bce57a3961a37942bc509dfb5e455 (patch)
tree6ebb8d3e3d402697b69bc9dbcba39ce908ca696c /machines/magician
parent47dde98fd2cf11ea544bb1c8d8d548ee0bda0f54 (diff)
reorganize firefox, laptop stuff
Diffstat (limited to 'machines/magician')
-rw-r--r--machines/magician/configuration.nix34
1 files changed, 1 insertions, 33 deletions
diff --git a/machines/magician/configuration.nix b/machines/magician/configuration.nix
index e11434a..0214cd8 100644
--- a/machines/magician/configuration.nix
+++ b/machines/magician/configuration.nix
@@ -6,45 +6,13 @@
];
services.upower.enable = true;
+ services.fwupd.enable = true;
swapDevices = [{
device = "/var/lib/swapfile";
size = 16*1024; # 16 GB
}];
- services.tlp = {
- enable = true;
- settings = {
- CPU_SCALING_GOVERNOR_ON_AC = "performance";
- CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
-
- # intel_pstate runs in active mode, where the scaling governor barely
- # matters. EPP is the knob that actually moves power.
- CPU_ENERGY_PERF_POLICY_ON_AC = "balance_performance";
- CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
-
- # drives the EC's PL1/PL2 power limits
- PLATFORM_PROFILE_ON_AC = "balanced";
- PLATFORM_PROFILE_ON_BAT = "low-power";
-
- # no turbo on battery, and cap sustained clocks. costs real
- # performance (nix builds especially) to buy runtime.
- CPU_BOOST_ON_BAT = 0;
- CPU_HWP_DYN_BOOST_ON_BAT = 0;
- CPU_MAX_PERF_ON_BAT = 60;
-
- PCIE_ASPM_ON_BAT = "powersave";
- RUNTIME_PM_ON_BAT = "auto";
- WIFI_PWR_ON_BAT = "on";
- SOUND_POWER_SAVE_ON_BAT = 1;
- USB_AUTOSUSPEND = 1;
-
- # battery longevity, not runtime. stops charging at 85%.
- START_CHARGE_THRESH_BAT0 = 75;
- STOP_CHARGE_THRESH_BAT0 = 85;
- };
- };
-
hardware.bluetooth = {
enable = true;
powerOnBoot = true;