move gpg to home

This commit is contained in:
Ivan Dimitrov 2023-12-01 18:59:45 +02:00
parent 5312059bc8
commit 939140e432
4 changed files with 14 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{ system, pkgs, home-manager, modules, ... }:
let
ivand-programs = with modules.home.programs; [ nvim zsh tmux git chromium firefox kitty lf obs-studio sway swaylock browserpass bottom ];
ivand-programs = with modules.home.programs; [ nvim zsh tmux git chromium firefox kitty lf obs-studio sway swaylock browserpass bottom gpg ];
ivand-packages = with modules.home.packages; [ dev essential media ];
vid-programs = with modules.home.programs; [ nvim zsh tmux ];
in

View File

@ -4,6 +4,7 @@
nvim = ide.nvim.${system}.homeManagerModules.nvim;
};
git = import ./git;
gpg = import ./gpg { inherit pkgs; };
chromium = import ./chromium { inherit pkgs; };
firefox = import ./firefox { inherit pkgs; };
kitty = import ./kitty;

View File

@ -0,0 +1,12 @@
{ pkgs, ... }: {
programs.gpg = {
enable = true;
};
services.gpg-agent = {
enable = true;
enableZshIntegration = true;
extraConfig = ''
pinentry-program ${pkgs.pinentry-bemenu}/bin/pinentry-bemenu
'';
};
}

View File

@ -100,10 +100,6 @@
};
programs = {
gnupg.agent = {
enable = true;
pinentryFlavor = "curses";
};
zsh.enable = true;
nix-ld.enable = true;
wshowkeys.enable = true;