Unverified Commit 6433d954 authored by Lukas Wurzinger's avatar Lukas Wurzinger
Browse files

nixos/undervolt: fix argument conversion

parent 921f0685
Loading
Loading
Loading
Loading
+31 −23
Original line number Diff line number Diff line
@@ -16,7 +16,15 @@ let
        limit != null && window != null
      ) "Both power limit and window must be set";
      "${toString limit} ${toString window}";
  cliArgs = lib.cli.toCommandLineGNU { } {
  cliArgs =
    let
      optionFormat = optionName: {
        option = "--${optionName}";
        sep = null;
        explicitBool = false;
      };
    in
    lib.cli.toCommandLine optionFormat {
      inherit (cfg)
        verbose
        temp