Conversation
72ba79c to
077fb80
Compare
|
As far as testing it goes, you should grep the output of That way you can set the options, and then grep the output for the things you added to make sure they are picked up by the wrapped ssh command created. |
|
Also, it appears the home manager module actually only installs the program and sets the config file content If you want, you can basically just copy paste this thing, import the wlib.modules.default module, and swap the thing it sets from Because right now, people can pretty easily already do what this module does wlib.wrapProgram [
{ inherit pkgs; }
({ pkgs, ... }: {
package = pkgs.openssh;
flags."-F" = pkgs.writeText "ssh-config" ''
<config-content>
'';
})
]It might be nice to just go straight for converting the home manager module to work here, rather than dealing with deprecating stuff later. Then if people just want to override the file they can do it in a few lines like I just showed (or |
|
Also I figured out that if I squash merge, it should still show you on the contributors pane on github despite you using a different email for the commit compared to your account's noreply email. So I will do that for your future commits, sorry I didn't realize that before. I have a git config like this that fixes that for me for my own commits. {config, pkgs, wlib, lib, ... }: {
imports = [ wlib.wrapperModules.git ];
settings = {
user.name = "Birdee";
user.email = "<85372418+BirdeeHub@users.noreply.github.com>";
};
}Please replace that with your own github noreply email and username if you copy that. As for the current PR, the suggestions I gave are still relevant. I would highly recommend running the tests locally by running |
Add openssh wrapper module (allowing for project specific ssh client configuration).
Currently, completely unstructured. Later it we could switch to a structured configuration (maybe analogous to home-manager). Also I don't know how to test the module, yet.