Skip to content

Commit

Permalink
chore: manage gpg
Browse files Browse the repository at this point in the history
  • Loading branch information
raexera committed Oct 22, 2024
1 parent 1087d10 commit a74f8af
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 10 deletions.
8 changes: 6 additions & 2 deletions home/modules/programs/git.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{pkgs, ...}: {
{
pkgs,
config,
...
}: {
home.packages = with pkgs; [
act
gh
Expand All @@ -24,7 +28,7 @@
userEmail = "[email protected]";

signing = {
key = "A987FE77C066A909";
key = config.programs.gpg.settings.default-key;
signByDefault = true;
};

Expand Down
10 changes: 10 additions & 0 deletions home/modules/programs/gpg.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{config, ...}: {
programs.gpg = {
enable = true;
homedir = "${config.xdg.dataHome}/gnupg";
settings = {
default-key = "A987FE77C066A909";
use-agent = true;
};
};
}
8 changes: 8 additions & 0 deletions home/modules/services/gpg-agent.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{pkgs, ...}: {
services.gpg-agent = {
enable = true;
enableSshSupport = true;
enableZshIntegration = true;
pinentryPackage = pkgs.pinentry-gnome3;
};
}
2 changes: 2 additions & 0 deletions home/profiles/yuki.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
../modules/wayland/windowManager/hyprland

../modules/programs/firefox.nix
../modules/programs/gpg.nix
../modules/programs/gtk.nix
../modules/programs/kitty.nix
../modules/programs/media
Expand All @@ -15,6 +16,7 @@

../modules/services/blueman-applet.nix
../modules/services/gnome-keyring.nix
../modules/services/gpg-agent.nix
../modules/services/polkit-agent.nix
../modules/services/udiskie.nix
];
Expand Down
1 change: 0 additions & 1 deletion modules/programs/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
imports = [
./bash.nix
./gnupg.nix
./home-manager.nix
./npm.nix
./thunar.nix
Expand Down
7 changes: 0 additions & 7 deletions modules/programs/gnupg.nix

This file was deleted.

0 comments on commit a74f8af

Please sign in to comment.