From 89a5a3cb663c3b4e3daaa650c82fe7bc3eedd96b Mon Sep 17 00:00:00 2001 From: Alexandre LUCAZEAU Date: Fri, 17 Dec 2021 12:07:04 +0100 Subject: [PATCH] ADD : gnupg.nix for pass, pinentry and gnupg. Load gpg agent and define gpg config --- nixpkgs/gnupg.nix | 14 ++++++++++++++ nixpkgs/home.nix | 11 +---------- 2 files changed, 15 insertions(+), 10 deletions(-) create mode 100644 nixpkgs/gnupg.nix diff --git a/nixpkgs/gnupg.nix b/nixpkgs/gnupg.nix new file mode 100644 index 0000000..ef018bc --- /dev/null +++ b/nixpkgs/gnupg.nix @@ -0,0 +1,14 @@ +{ config, pkgs, ... }:{ + home.packages = with pkgs; [ + pass + gnupg + pinentry-curses + ]; + services = { + # lorri.enable = true; + gpg-agent = { + enable = true; + enableSshSupport = true; + }; + }; +} diff --git a/nixpkgs/home.nix b/nixpkgs/home.nix index 3d412b9..e498319 100644 --- a/nixpkgs/home.nix +++ b/nixpkgs/home.nix @@ -1,20 +1,11 @@ { pkgs, ... }: { imports = [ ./packages.nix + ./gnupg.nix ./git.nix ]; home.keyboard = { layout = "fr"; variant = "bepo"; }; - environment.variables = let - apps = (import ./variables.nix).apps; - in - { - EDITOR = apps.EDITOR; - VISUAL = apps.EDITOR; - TERMINAL = apps.TERMINAL; - BROWSER = apps.BROWSER; - PRIVATE_BROWSER = apps.PRIVATE_BROWSER; - }; }