rice/alice/default.nix
buffet a9732e2ab4 Revert "feat(tlp): raise charing to 80% for camp"
This reverts commit b7407fb584a7d21f12e5430947d46e309225df8f.
2024-05-20 12:06:16 +02:00

42 lines
911 B
Nix

{nixos-hardware, ...}: let
password = "$y$j9T$g/a4KaQ5VitWI9ZtAh9i3/$wjejk5W8LMc0gaVgw69kwrKLqBgZ95ekaOl/GaTOZVC";
in {
imports = [
nixos-hardware.nixosModules.lenovo-thinkpad-x270
./hardware-configuration.nix
];
# Don't change!
system.stateVersion = "23.05";
home-manager.users.buffet.home.stateVersion = "23.05";
users.users.buffet.hashedPassword = password;
users.users.root.hashedPassword = password;
networking.hostName = "alice";
services = {
tlp = {
enable = true;
settings = {
START_CHARGE_THRESH_BAT0 = 40;
STOP_CHARGE_THRESH_BAT0 = 60;
START_CHARGE_THRESH_BAT1 = 40;
STOP_CHARGE_THRESH_BAT1 = 60;
};
};
keyd = {
enable = true;
settings = {
main = {
"102nd" = "layer(shift)"; # < as shift
"enter" = "\\";
"\\" = "enter";
};
};
};
};
}