aboutsummaryrefslogtreecommitdiff
path: root/home/gpg/default.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-05-07 09:15:36 -0700
committerFranck Cuny <franck@fcuny.net>2023-05-07 09:15:36 -0700
commit47043d7d7d599989beb777592e552641ee493a60 (patch)
treedfe20624e1efcba50e5cb85f9dfb74ac57816c16 /home/gpg/default.nix
parentprofiles/workstation: move element (matrix client) (diff)
downloadinfra-47043d7d7d599989beb777592e552641ee493a60.tar.gz
home: get rid of mail / gpg modules
I don't use GPG anymore and I don't read mail in Emacs anymore.
Diffstat (limited to 'home/gpg/default.nix')
-rw-r--r--home/gpg/default.nix44
1 files changed, 0 insertions, 44 deletions
diff --git a/home/gpg/default.nix b/home/gpg/default.nix
deleted file mode 100644
index b56377d..0000000
--- a/home/gpg/default.nix
+++ /dev/null
@@ -1,44 +0,0 @@
-{ pkgs, config, lib, ... }:
-let cfg = config.my.home.gpg;
-in
-{
- options.my.home.gpg = with lib; {
- enable = mkEnableOption "gpg configuration";
- pinentry = mkOption {
- type = types.str;
- default = "tty";
- example = "gnome3";
- description = "Which pinentry interface to use";
- };
- defaultKey = mkOption {
- type = types.str;
- default = null;
- description = "Default GPG key";
- };
- };
-
- config = lib.mkIf cfg.enable {
- home.packages = with pkgs; [ yubikey-manager ];
-
- programs.gpg = {
- enable = true;
- homedir = "${config.xdg.configHome}/gnupg";
- settings = {
- default-key = cfg.defaultKey;
- personal-cipher-preferences = "AES256 AES192 AES";
- personal-digest-preferences = "SHA512 SHA384 SHA256";
- personal-compress-preferences = "ZLIB BZIP2 ZIP Uncompressed";
- keyid-format = "long";
- with-fingerprint = true;
- };
- };
- services.gpg-agent = {
- enable = false;
- enableSshSupport = false; # ensure we're not defaulting to GPG
- pinentryFlavor = cfg.pinentry;
- extraConfig = ''
- allow-loopback-pinentry
- '';
- };
- };
-}