Add some laptop settings
All checks were successful
Run nix flake check / flake-check (push) Successful in 1m48s

This commit is contained in:
Torjus Håkestad 2025-05-16 11:00:46 +02:00
parent 2fceac57c5
commit 3f2f3db78a
3 changed files with 24 additions and 8 deletions

View File

@ -1,6 +1,4 @@
{
config,
lib,
pkgs,
...
}:
@ -24,6 +22,7 @@
enable = true;
configurationLimit = 3;
};
boot.loader.efi = {
canTouchEfiVariables = true;
};
@ -91,12 +90,6 @@
# TRIM
services.fstrim.enable = true;
# TLP
services.tlp.enable = true;
# Brillo
hardware.brillo.enable = true;
# Setup common XDG env vars
environment.sessionVariables = rec {
XDG_CACHE_HOME = "$HOME/.cache";

View File

@ -8,6 +8,7 @@
imports = [
./configuration.nix
./hardware-configuration.nix
./laptop.nix
../../system
../../home/magicman.nix
];

22
hosts/magicman/laptop.nix Normal file
View File

@ -0,0 +1,22 @@
{ ... }:
{
hardware.brillo.enable = true;
powerManagement.enable = true;
services.tlp.enable = true;
services.thermald.enable = true;
services.auto-cpufreq = {
enable = true;
settings = {
battery = {
governor = "powersave";
turbo = "never";
};
charger = {
governor = "performance";
turbo = "auto";
};
};
};
}