Skip to content

Conversation

@mokrinsky
Copy link
Contributor

Adding module to configure saml2aws utility.

Description

Checklist

  • Change is backwards compatible.

  • Code formatted with nix fmt or
    nix-shell -p treefmt nixfmt deadnix keep-sorted --run treefmt.

  • Code tested through nix run .#tests -- test-all or
    nix-shell --pure tests -A run.all.

  • Test cases updated/added. See example.

  • Commit messages are formatted like

    {component}: {description}
    
    {long description}
    

    See CONTRIBUTING for more information and recent commit messages for examples.

  • If this PR adds a new module

    • Added myself as module maintainer. See example.
    • Generate a news entry. See News
    • Basic tests added. See Tests
  • If this PR adds an exciting new feature or contains a breaking change.

    • Generate a news entry. See News

Adding module to configure saml2aws utility using home-manager
Comment on lines +384 to +395
mokrinsky = {
name = "mokrinsky";
email = "[email protected]";
github = "mokrinsky";
githubId = 463907;
keys = [
{
longkeyid = "rsa4096/0x73CC011921471A15";
fingerprint = "EA54 E892 D96C 779E 1FA6 4E0A 73CC 0119 2147 1A15";
}
];
};
Copy link
Collaborator

Choose a reason for hiding this comment

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

Separate commit before module addition, please.

enable = lib.mkEnableOption "saml2aws CLI tool";

package = lib.mkPackageOption pkgs "saml2aws" {
default = "saml2aws";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
default = "saml2aws";


enableBashIntegration = lib.hm.shell.mkBashIntegrationOption {
inherit config;
extraDescription = ''If enabled, this will install autocompletion for bash.'';
Copy link
Collaborator

Choose a reason for hiding this comment

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

If the completions are the only benefit of the integration, aren't the shell completions already installed https://github.com/NixOS/nixpkgs/blob/c4e9b72d0bf394509a3b2aff27be35b7e3c99b85/pkgs/by-name/sa/saml2aws/package.nix#L33-L37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants