aboutsummaryrefslogtreecommitdiff
path: root/users/fcuny/trusted/pgp.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-04-03 15:12:16 -0700
committerFranck Cuny <franck@fcuny.net>2022-04-03 15:12:16 -0700
commitb72274ab06b4c160fc8d3afe8e2d67863c893a58 (patch)
treeb00c3b128d55d1f51395243902c0dea60fe7df4b /users/fcuny/trusted/pgp.nix
parentRevert "create a new role for navidrome" (diff)
downloadinfra-b72274ab06b4c160fc8d3afe8e2d67863c893a58.tar.gz
home-manager: add `isTrusted`
Install and configure some programs only on trusted machines. On trusted machines, my mails, GPG and a few other things are configured. A machine where this is not needed on a regular basis to get things done don't need that much information. Also rename `desktop/trust` to `trusted`, in case we want these packages on a host that is not a desktop, and `trusted` is a better description.
Diffstat (limited to 'users/fcuny/trusted/pgp.nix')
-rw-r--r--users/fcuny/trusted/pgp.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/users/fcuny/trusted/pgp.nix b/users/fcuny/trusted/pgp.nix
new file mode 100644
index 0000000..79ed7dd
--- /dev/null
+++ b/users/fcuny/trusted/pgp.nix
@@ -0,0 +1,17 @@
+{ config, lib, pkgs, ... }:
+
+{
+ services.gpg-agent = {
+ enable = true;
+ enableSshSupport = true;
+ pinentryFlavor = "gnome3";
+ };
+
+ programs.gpg = {
+ enable = true;
+ settings = {
+ default-key = "23348B57F01D4234B5CFBA0923208AC01EB6EEA1";
+ };
+ };
+}
+