Commit a7d3a65df040

Vincent Demeester <vincent@sbr.pm>
2020-06-23 16:44:16
users/vincent: disable gpg-agent on nixos machines…
… at least by default. Also add it to the `services.gpg-agent` on naruhodo. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent f6fb51b
Changed files (2)
systems
users
vincent
systems/naruhodo.home.nix
@@ -18,9 +18,18 @@ in
     ../users/vincent/containers/openshift.nix
   ];
 
+  home.extraOutputsToInstall = [ "man" ];
   home.file.".local/share/applications/redhat-vpn.desktop".source = ./naruhodo/redhat-vpn.desktop;
 
   programs.bash.enable = lib.mkForce false;
   programs.man.enable = true;
-  home.extraOutputsToInstall = [ "man" ];
+
+  services = {
+    gpg-agent = {
+      enable = true;
+      enableSshSupport = true;
+      enableExtraSocket = true;
+      defaultCacheTtlSsh = 7200;
+    };
+  };
 }
users/vincent/core/gpg.nix
@@ -2,6 +2,7 @@
 
 {
   home.packages = with pkgs; [ gnupg ];
+  /*
   services = {
     gpg-agent = {
       enable = true;
@@ -11,4 +12,5 @@
       # pinEntryFlavor = "gtk2";
     };
   };
+  */
 }