ADD : gnupg.nix for pass, pinentry and gnupg. Load gpg agent and define gpg config

This commit is contained in:
Alexandre LUCAZEAU 2021-12-17 12:07:04 +01:00
parent cc815afb96
commit 89a5a3cb66
2 changed files with 15 additions and 10 deletions

14
nixpkgs/gnupg.nix Normal file
View File

@ -0,0 +1,14 @@
{ config, pkgs, ... }:{
home.packages = with pkgs; [
pass
gnupg
pinentry-curses
];
services = {
# lorri.enable = true;
gpg-agent = {
enable = true;
enableSshSupport = true;
};
};
}

View File

@ -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;
};
}