Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use minimal gnupg #555

Closed
wants to merge 1 commit into from

Conversation

SuperSandro2000
Copy link
Collaborator

@SuperSandro2000 SuperSandro2000 commented Apr 28, 2024

The closure size of the minimal gnupg is significant smaller.

                                                        normal gnupg                                              minimal gnupg
 ➜ nix path-info --size --closure-size --human-readable /nix/store/5kk1414f5iadlz9b7vnbg5dlk6icryjl-gnupg-2.4.5/ /nix/store/xp9bd1qyw5bdhshxmd1bdlhbi5hwdxwy-gnupg-2.4.5
/nix/store/5kk1414f5iadlz9b7vnbg5dlk6icryjl-gnupg-2.4.5   12.8M  133.5M
/nix/store/xp9bd1qyw5bdhshxmd1bdlhbi5hwdxwy-gnupg-2.4.5    1.2M   34.4M

@SuperSandro2000
Copy link
Collaborator Author

Not sure why the tests fail though...

@@ -320,7 +320,7 @@ in {
}]) cfg.secrets)
);

sops.environment.SOPS_GPG_EXEC = lib.mkIf (cfg.gnupg.home != null || cfg.gnupg.sshKeyPaths != []) (lib.mkDefault "${pkgs.gnupg}/bin/gpg");
sops.environment.SOPS_GPG_EXEC = lib.mkIf (cfg.gnupg.home != null || cfg.gnupg.sshKeyPaths != []) (lib.mkDefault (lib.getExe (pkgs.gnupg.override { enableMinimal = true; })));
Copy link
Owner

Choose a reason for hiding this comment

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

Do we cache the minimal build in hydra?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The closure size of the minimal gnupg is significant smaller.

                                                        normal gnupg                                              minimal gnupg
 ➜ nix path-info --size --closure-size --human-readable /nix/store/5kk1414f5iadlz9b7vnbg5dlk6icryjl-gnupg-2.4.5/ /nix/store/xp9bd1qyw5bdhshxmd1bdlhbi5hwdxwy-gnupg-2.4.5
/nix/store/5kk1414f5iadlz9b7vnbg5dlk6icryjl-gnupg-2.4.5   12.8M  133.5M
/nix/store/xp9bd1qyw5bdhshxmd1bdlhbi5hwdxwy-gnupg-2.4.5    1.2M   34.4M
@SuperSandro2000
Copy link
Collaborator Author

The tests are failing because the minimal gnupg is so barebones, that it cannot initialize from an empty installation. I give up.

@SuperSandro2000 SuperSandro2000 deleted the minimal-gnupg branch July 5, 2024 15:25
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