mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nixos: init vanadium by cloning carbon
This commit is contained in:
parent
96340f2e08
commit
dcadddad3a
21 changed files with 1335 additions and 0 deletions
25
nix/nixosModules/named/vanadium/battery.nix
Normal file
25
nix/nixosModules/named/vanadium/battery.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue