Skip to content

Commit

Permalink
feat(systems): silicon: reinstate GPG signing
Browse files Browse the repository at this point in the history
  • Loading branch information
gekoke committed Sep 6, 2024
1 parent 6ec8750 commit deb5de5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion modules/nixos/security/gpg/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ in
{
options.elementary.security.gpg = with types; {
enable = mkEnableOption "gnupg";
pinentryPackage = mkOption {
type = nullOr package;
default = pkgs.pinentry-gnome3;
};
};

config = mkIf cfg.enable {
Expand All @@ -29,8 +33,8 @@ in
ttlInSeconds = 8 * 60 * 60;
in
{
inherit (cfg) pinentryPackage;
enable = true;
pinentryPackage = pkgs.pinentry-gnome3;
defaultCacheTtl = ttlInSeconds;
maxCacheTtl = ttlInSeconds;
};
Expand Down
7 changes: 6 additions & 1 deletion systems/x86_64-linux/silicon/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ in
pkgs.gcc
pkgs.powershell
];

services.gpg-agent.extraConfig = ''
pinentry-program "/mnt/c/Program Files (x86)/GnuPG/bin/pinentry-basic.exe"
'';
};

elementary = {
Expand All @@ -45,11 +49,12 @@ in
};
security = {
sudo = enabled;
gpg = enabled;
};
programs = {
git = enabled // {
signByDefault = false;
userEmail = "[email protected]";
signingKey = "FB5F09CB29F94BC5";
};
ssh = enabled;
emacs = enabled // {
Expand Down

0 comments on commit deb5de5

Please sign in to comment.