mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: adds sleep indicator
This commit is contained in:
parent
077d1881d1
commit
e50835d259
1 changed files with 20 additions and 1 deletions
|
|
@ -38,11 +38,30 @@
|
|||
# powertop.enable = true;
|
||||
cpuFreqGovernor = lib.mkDefault "ondemand";
|
||||
};
|
||||
# change battery led to blue on suspend to indicate device is in suspend mode
|
||||
systemd.services."suspend-led-set" = {
|
||||
description = "blue led for sleep";
|
||||
wantedBy = [ "suspend.target" ];
|
||||
before = [ "systemd-suspend.service" ];
|
||||
serviceConfig.type = "simple";
|
||||
script = ''
|
||||
${pkgs.fw-ectool}/bin/ectool led battery blue
|
||||
'';
|
||||
};
|
||||
systemd.services."suspend-led-unset" = {
|
||||
description = "auto led after sleep";
|
||||
wantedBy = [ "suspend.target" ];
|
||||
after = [ "systemd-suspend.service" ];
|
||||
serviceConfig.type = "simple";
|
||||
script = ''
|
||||
${pkgs.fw-ectool}/bin/ectool led battery auto
|
||||
'';
|
||||
};
|
||||
boot = {
|
||||
plymouth.enable = true;
|
||||
kernelParams = [
|
||||
"mem_sleep_default=deep"
|
||||
"acpi_osi=\"!Windows 2020\""
|
||||
"acpi_osi=\"!Windows 2020\"" # otherwise GPU does weird shit that makes the computer look like the RAM is broken
|
||||
];
|
||||
kernelModules = [ "acpi_call" ];
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue