Skip to content

feat: New flag for passing extra args to run0#10

Merged
LordGrimmauld merged 2 commits intoLordGrimmauld:mainfrom
plumj-am:main
Mar 28, 2026
Merged

feat: New flag for passing extra args to run0#10
LordGrimmauld merged 2 commits intoLordGrimmauld:mainfrom
plumj-am:main

Conversation

@plumj-am
Copy link
Copy Markdown
Contributor

I wanted to adjust the --background of run0 because the default doesn't work well with my terminal theme. I thought it could be more flexible and opted to create a catch-all approach that allows passing any extra arguments to run0.

I initially tried it as a single string but passing it multiple times is clearer and simpler.

Example wrapper from my NixOS configs:

package = pkgs.symlinkJoin {
  name = "sudo";
  paths = [ inputs.run0-sudo-shim.packages.${pkgs.stdenv.hostPlatform.system}.run0-sudo-shim ];
  nativeBuildInputs = [ pkgs.makeWrapper ];
  postBuild = ''
    wrapProgram $out/bin/sudo --add-flags "--run0-extra-arg=--background="
  '';
};

@LordGrimmauld LordGrimmauld self-requested a review March 24, 2026 08:49
Signed-off-by: PlumJam <git@plumj.am>
Copy link
Copy Markdown
Owner

@LordGrimmauld LordGrimmauld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this does look helpful. I am happy to prefix any shim-specific flags with --run0-..., and the change itself is nice and small.

@LordGrimmauld LordGrimmauld merged commit c9e06e2 into LordGrimmauld:main Mar 28, 2026
6 checks passed
@LordGrimmauld LordGrimmauld added the enhancement New feature or request label Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants