feat: massive refactor

This commit is contained in:
2025-12-20 12:57:47 +08:00
parent f4c1b313ce
commit 454ad5885d
97 changed files with 1023 additions and 960 deletions

View File

@@ -2,18 +2,26 @@
config,
lib,
pkgs,
username,
...
}:
lib.my.makeHomeProgramConfig {
inherit config;
programName = "gpg";
optionPath = [ "gpg" ];
extraConfig = {
let
cfg = config.my.gpg;
in
{
options.my.gpg = {
enable = lib.mkEnableOption "GPG and GPG agent";
};
config = lib.mkIf cfg.enable {
programs.gnupg.agent = {
enable = true;
pinentryPackage = pkgs.pinentry-curses;
enableSSHSupport = true;
};
my.hm.programs.gpg.enable = true;
my.persist.homeDirs = [
{
directory = ".gnupg";