fix: thinkpad sleep

This commit is contained in:
Evan Reichard 2025-10-31 09:26:05 -04:00
parent 5c429b8a6b
commit 667df4e8e6
2 changed files with 26 additions and 9 deletions

View File

@ -1,6 +1,7 @@
{ pkgs, lib, config, namespace, ... }: { pkgs, lib, config, namespace, ... }:
let let
inherit (lib) mkIf; inherit (lib) mkIf optionalAttrs;
inherit (pkgs.stdenv) isLinux;
cfg = config.${namespace}.programs.terminal.bash; cfg = config.${namespace}.programs.terminal.bash;
in in
{ {
@ -14,6 +15,8 @@ in
shellAliases = { shellAliases = {
grep = "grep --color"; grep = "grep --color";
ssh = "TERM=xterm-256color ssh"; ssh = "TERM=xterm-256color ssh";
} // optionalAttrs isLinux {
sync-watch = "watch -d grep -e Dirty: -e Writeback: /proc/meminfo";
}; };
profileExtra = '' profileExtra = ''
export COLORTERM=truecolor export COLORTERM=truecolor

View File

@ -5,14 +5,26 @@ in
{ {
system.stateVersion = "25.05"; system.stateVersion = "25.05";
time.timeZone = "America/New_York"; time.timeZone = "America/New_York";
hardware.enableRedistributableFirmware = true;
hardware.bluetooth.enable = true;
hardware.amdgpu.initrd.enable = lib.mkDefault true; boot = {
services.xserver.videoDrivers = [ "modesetting" ]; supportedFilesystems = [ "nfs" ];
boot.kernelParams = [ kernelParams = [
# Mask GPE03 (EC wakeup events) to allow hibernation without spurious CPU wakeups # Mask GPE03 (EC wakeup events) to allow hibernation without spurious CPU wakeups
"acpi_mask_gpe=0x03" "acpi_mask_gpe=0x03"
]; ];
};
hardware = {
enableRedistributableFirmware = true;
bluetooth.enable = true;
amdgpu.initrd.enable = lib.mkDefault true;
};
services = {
xserver.videoDrivers = [ "modesetting" ];
fwupd.enable = true;
};
# System Config # System Config
reichard = { reichard = {
@ -74,5 +86,7 @@ in
# Additional System Packages # Additional System Packages
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
mosh mosh
rclone
unzip
]; ];
} }