Skip to content

Commit

Permalink
Add gpg module
Browse files Browse the repository at this point in the history
  • Loading branch information
rake5k committed Nov 26, 2023
1 parent 5911231 commit 1883c1e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions home/users/christian/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ in
users."${username}" = {
fonts.enable = !config.custom.roles.mobile.enable;
git.enable = true;
gpg.enable = true;
hardware = {
kmonad.enable = !config.custom.roles.mobile.enable;
xbindkeys.enable = !config.custom.roles.mobile.enable;
Expand Down
28 changes: 28 additions & 0 deletions home/users/christian/gpg/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{ config, lib, pkgs, ... }:

with lib;

let

cfg = config.custom.users.christian.gpg;

in

{
options = {
custom.users.christian.gpg = {
enable = mkEnableOption "GnuPG";
};
};

config = mkIf cfg.enable {

home.file.".gnupg/gpg-agent.conf" = {
text = ''
pinentry-program ${getExe pkgs.pinentry}
'';
};

programs.gpg.enable = true;
};
}

0 comments on commit 1883c1e

Please sign in to comment.