Start debugging sleep on rainbowdash

This commit is contained in:
Artemis Tosini 2022-06-03 14:11:32 +00:00
parent 4a740fb642
commit 460045679e
Signed by: artemist
GPG key ID: ADFFE553DCBB831E
3 changed files with 14 additions and 7 deletions

View file

@ -5,10 +5,7 @@
./wifi.nix
];
services = {
tlp.enable = true;
upower.enable = true;
};
services.upower.enable = true;
programs.light.enable = true;
users.users.artemis.extraGroups = [ "video" ];

View file

@ -3,7 +3,14 @@
{
boot = {
kernelPackages = pkgs.linuxPackages_latest;
kernelParams = [ "mem_sleep_default=deep" ];
kernelParams = [ "mem_sleep_default=deep" "initcall_debug" ];
kernelPatches = [{
name = "debug_acpi";
patch = null;
extraConfig = ''
ACPI_DEBUG y
'';
}];
kernel.sysctl."vm.swappiness" = 5;
cleanTmpDir = true;
blacklistedKernelModules = [ "psmouse" ];

View file

@ -12,11 +12,15 @@
../../sets/1password.nix
../../sets/workstation.nix
../../sets/krb5.nix
inputs.nixos-hardware.nixosModules.dell-xps-13-9380
inputs.nixos-hardware.nixosModules.common-cpu-intel
inputs.nixos-hardware.nixosModules.common-pc-laptop
inputs.nixos-hardware.nixosModules.common-pc-laptop-acpi_call
];
boot.supportedFilesystems = [ "nfs4" ];
services.throttled.enable = true;
# Home
home-manager.users.artemis = {
wayland.windowManager.sway.config = {
@ -39,7 +43,6 @@
'';
};
services.thermald.enable = true;
networking.domain = "manehattan.artem.ist";
networking.hostName = "rainbowdash";