-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
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
programs.gnupg: Support setting the gnupg program #57782
Conversation
@infinisil ping. |
nixos/modules/programs/gnupg.nix
Outdated
@@ -11,6 +11,14 @@ in | |||
{ | |||
|
|||
options.programs.gnupg = { | |||
program = mkOption { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe it's customary to call these kind of attributes package
.
@peti Addressed your comment. |
nixos/modules/programs/gnupg.nix
Outdated
@@ -11,6 +11,14 @@ in | |||
{ | |||
|
|||
options.programs.gnupg = { | |||
package = mkOption { | |||
type = types.path; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Type should be types.package
@@ -11,6 +11,14 @@ in | |||
{ | |||
|
|||
options.programs.gnupg = { | |||
package = mkOption { | |||
type = types.path; | |||
default = pkgs.gnupg; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to add defaultText = "pkgs.gnupg";
@infinisil fixed. |
This pull request has been mentioned on Nix community. There might be relevant details there: |
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)