Powersave : Fix import args.
This commit is contained in:
parent
508ff9a894
commit
d334431d25
|
@ -1,12 +1,12 @@
|
||||||
{ pkgs, ... } @args: let
|
{ pkgs, ... } @args: let
|
||||||
controlFile = "/sys/devices/system/cpu/cpufreq/boost";
|
controlFile = "/sys/devices/system/cpu/cpufreq/boost";
|
||||||
enable = "1";
|
enable = "0";
|
||||||
disable = "0";
|
disable = "1";
|
||||||
|
|
||||||
script = pkgs.writeShellScriptBin "powersave" (import ./powersave/Script.nix {
|
script = pkgs.writeShellScriptBin "powersave" (import ./powersave/Script.nix {
|
||||||
controlFile = controlFile;
|
inherit controlFile;
|
||||||
disable = "1";
|
inherit enable;
|
||||||
enable = "0";
|
inherit disable;
|
||||||
}).script;
|
}).script;
|
||||||
in {
|
in {
|
||||||
# Requirements:
|
# Requirements:
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
disable = "0";
|
disable = "0";
|
||||||
|
|
||||||
script = pkgs.writeShellScriptBin "powersave" (import ./powersave/Script.nix {
|
script = pkgs.writeShellScriptBin "powersave" (import ./powersave/Script.nix {
|
||||||
controlFile = controlFile;
|
inherit controlFile;
|
||||||
disable = "0";
|
inherit enable;
|
||||||
enable = "1";
|
inherit disable;
|
||||||
}).script;
|
}).script;
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
|
|
Loading…
Reference in a new issue