laptop: power profiles
This commit is contained in:
@@ -3,6 +3,7 @@ let
|
|||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
services.power-profiles-daemon.enable = true;
|
||||||
services.tlp = {
|
services.tlp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
@@ -78,7 +79,6 @@ in
|
|||||||
before = [ "sleep.target" ];
|
before = [ "sleep.target" ];
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
ExecStop = ''${pkgs.utillinux}/bin/rfkill unblock all'';
|
ExecStop = ''${pkgs.utillinux}/bin/rfkill unblock all'';
|
||||||
ExecStart = ''${pkgs.utillinux}/bin/rfkill block all'';
|
ExecStart = ''${pkgs.utillinux}/bin/rfkill block all'';
|
||||||
|
|||||||
Reference in New Issue
Block a user