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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SuperSandro2000
Copy link
Contributor

@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

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
Contributor 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?

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.

None yet

2 participants