Add GnuPG module

This commit is contained in:
Madeleine Sydney
2024-12-28 22:42:57 -07:00
parent 56f2a65be2
commit 641036a889
2 changed files with 28 additions and 3 deletions

20
modules/nixos/gpg.nix Normal file
View File

@@ -0,0 +1,20 @@
{ config, lib, pkgs, ... }:
with lib;
{
options = {
sydnix.gpg = {
enable = mkEnableOption "GnuPG";
};
};
config = mkIf config.sydnix.gpg.enable {
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
environment.systemPackages = [ pkgs.gnupg ];
};
}