nixos: init vanadium by cloning carbon

This commit is contained in:
Primrose 2024-12-28 22:12:18 +01:00
parent 96340f2e08
commit dcadddad3a
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
21 changed files with 1335 additions and 0 deletions

View file

@ -0,0 +1,25 @@
{
systemd.sleep.extraConfig = ''
HibernateDelaySec=2hour
'';
services.logind = {
lidSwitch = "suspend-then-hibernate";
lidSwitchExternalPower = "ignore";
};
services.tlp = {
enable = true;
settings = {
# battery limiter
START_CHARGE_THRESH_BAT0 = 80;
STOP_CHARGE_THRESH_BAT0 = 90;
START_CHARGE_THRESH_BAT1 = 80;
STOP_CHARGE_THRESH_BAT1 = 90;
# audio popping fix
SOUND_POWER_SAVE_ON_AC = 0;
SOUND_POWER_SAVE_ON_BAT = 0;
SOUND_POWER_SAVE_CONTROLLER = "N";
};
};
}