home-manager gburd

This commit is contained in:
Gregory Burd 2023-09-26 15:56:21 -04:00
parent 37ba6126b7
commit 0f73f50309
Signed by: greg
GPG key ID: AEFACC3FC495AF89
2 changed files with 7 additions and 17 deletions

View file

@ -10,15 +10,16 @@ let
};
in
{
# home.packages = pinentry.packages;
home.packages = [ pkgs.pinentry-curses ];
home.packages = pinentry.packages;
# home.packages = [ pkgs.pinentry-curses ];
services.gpg-agent = {
#TODO: gnupg vs gpg-agent ?
enable = true;
enableSshSupport = true;
# sshKeys = [ "149F16412997785363112F3DBD713BC91D51B831" ];
pinentryFlavor = pinentry.name;
# TODO: sshKeys = [ "149F16412997785363112F3DBD713BC91D51B831" ];
# TODO: pinentryFlavor = pinentry.name;
pinentryFlavor = "curses";
enableExtraSocket = true;
};

View file

@ -1,15 +1,4 @@
{ config, lib, pkgs, ... }:
let
pinentry =
if config.gtk.enable then {
packages = [ pkgs.pinentry-gnome pkgs.gcr ];
name = "gnome3";
} else {
packages = [ pkgs.pinentry-curses ];
name = "curses";
};
in
{
{ config, lib, pkgs, ... }: {
home = {
file = {
"${config.xdg.configHome}/neofetch/config.conf".text = builtins.readFile ./neofetch.conf;
@ -176,7 +165,7 @@ in
gpg-agent = {
enable = true;
enableSshSupport = true;
pinentryFlavor = pinentry.name;
pinentryFlavor = "curses";
};
};