fix: hibernate resume for nb
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user