restructure

This commit is contained in:
Henri Dohmen 2025-07-14 14:45:55 +02:00
parent 4922f8f7cb
commit ffe40ca5e7
25 changed files with 84 additions and 66 deletions

33
desktop/gpg.nix Normal file
View file

@ -0,0 +1,33 @@
{
config,
lib,
pkgs,
...
}:
let
cfg = config.hd.desktop.gpg;
inherit (lib) mkEnableOption mkIf;
in
{
options.hd.desktop.gpg.enable = mkEnableOption "GPG";
config = mkIf cfg.enable {
home = {
home.packages = with pkgs; [
seahorse
libsecret
gnome-keyring
];
programs.gpg = {
enable = true;
};
services.gpg-agent = {
enable = true;
enableSshSupport = true;
pinentry.package = pkgs.pinentry-gtk2;
};
};
services.gnome.gnome-keyring = {
enable = true;
};
};
}