Unverified Commit 0968807b authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

[Backport release-25.11] nixos/undervolt: fix argument conversion (#466223)

parents 26f38d62 2602b909
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