Unverified Commit 9df66aaf authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

nixos/undervolt: fix argument conversion (#466003)

parents d6e7efa5 6433d954
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