fix: thinkpad sleep
This commit is contained in:
parent
5c429b8a6b
commit
667df4e8e6
@ -1,6 +1,7 @@
|
||||
{ pkgs, lib, config, namespace, ... }:
|
||||
let
|
||||
inherit (lib) mkIf;
|
||||
inherit (lib) mkIf optionalAttrs;
|
||||
inherit (pkgs.stdenv) isLinux;
|
||||
cfg = config.${namespace}.programs.terminal.bash;
|
||||
in
|
||||
{
|
||||
@ -14,6 +15,8 @@ in
|
||||
shellAliases = {
|
||||
grep = "grep --color";
|
||||
ssh = "TERM=xterm-256color ssh";
|
||||
} // optionalAttrs isLinux {
|
||||
sync-watch = "watch -d grep -e Dirty: -e Writeback: /proc/meminfo";
|
||||
};
|
||||
profileExtra = ''
|
||||
export COLORTERM=truecolor
|
||||
|
||||
@ -5,14 +5,26 @@ in
|
||||
{
|
||||
system.stateVersion = "25.05";
|
||||
time.timeZone = "America/New_York";
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
hardware.bluetooth.enable = true;
|
||||
hardware.amdgpu.initrd.enable = lib.mkDefault true;
|
||||
services.xserver.videoDrivers = [ "modesetting" ];
|
||||
boot.kernelParams = [
|
||||
# Mask GPE03 (EC wakeup events) to allow hibernation without spurious CPU wakeups
|
||||
"acpi_mask_gpe=0x03"
|
||||
];
|
||||
|
||||
|
||||
boot = {
|
||||
supportedFilesystems = [ "nfs" ];
|
||||
kernelParams = [
|
||||
# Mask GPE03 (EC wakeup events) to allow hibernation without spurious CPU wakeups
|
||||
"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
|
||||
reichard = {
|
||||
@ -74,5 +86,7 @@ in
|
||||
# Additional System Packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
mosh
|
||||
rclone
|
||||
unzip
|
||||
];
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user