Powersave : Fix import args.

This commit is contained in:
Dmitry Voronin 2024-05-06 23:21:25 +03:00
parent 508ff9a894
commit d334431d25
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
2 changed files with 8 additions and 8 deletions

View file

@ -1,12 +1,12 @@
{ pkgs, ... } @args: let
controlFile = "/sys/devices/system/cpu/cpufreq/boost";
enable = "1";
disable = "0";
enable = "0";
disable = "1";
script = pkgs.writeShellScriptBin "powersave" (import ./powersave/Script.nix {
controlFile = controlFile;
disable = "1";
enable = "0";
inherit controlFile;
inherit enable;
inherit disable;
}).script;
in {
# Requirements:

View file

@ -4,9 +4,9 @@
disable = "0";
script = pkgs.writeShellScriptBin "powersave" (import ./powersave/Script.nix {
controlFile = controlFile;
disable = "0";
enable = "1";
inherit controlFile;
inherit enable;
inherit disable;
}).script;
in {
imports = [