fix: hibernate resume for nb

This commit is contained in:
2025-10-19 18:14:40 +02:00
parent 28ed3fcf74
commit 7d5294e7b9
3 changed files with 26 additions and 27 deletions

View File

@@ -72,6 +72,14 @@ in {
theme = "steeef"; # Set theme
plugins = [ "git" ]; # Add plugins
};
interactiveShellInit = ''
# Bind Shift+Return to insert newline (foot terminal sends \e[27;2;13~)
insert-newline() {
LBUFFER="''${LBUFFER}"$'\n'
}
zle -N insert-newline
bindkey '^[[27;2;13~' insert-newline
'';
};
users.defaultUserShell = pkgs.zsh;
@@ -93,8 +101,8 @@ in {
# Battery optimization - increase dirty writeback time to batch writes
"vm.dirty_writeback_centisecs" = 3000; # 30 seconds (default: 500 = 5s)
"vm.dirty_expire_centisecs" = 3000; # 30 seconds (default: 3000)
# Enable laptop mode for aggressive disk power management
"vm.laptop_mode" = 5;
# Enable laptop mode for disk power management (2 = balanced, less aggressive than 5)
"vm.laptop_mode" = 2;
};
# nixos cross building qemu