summaryrefslogtreecommitdiff
path: root/kj-laptop01/home.nix
diff options
context:
space:
mode:
Diffstat (limited to 'kj-laptop01/home.nix')
-rw-r--r--kj-laptop01/home.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/kj-laptop01/home.nix b/kj-laptop01/home.nix
index 0ece086..3e99f05 100644
--- a/kj-laptop01/home.nix
+++ b/kj-laptop01/home.nix
@@ -10,6 +10,14 @@
programs.home-manager.enable = true;
+ # Install packages
+ home.packages = with pkgs; [
+ htop
+ git
+ zellij
+ tmux
+ ];
+
# Configure sops for home-manager
sops = {
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
@@ -18,6 +26,10 @@
kj_id_ed25519 = {
path = "${config.home.homeDirectory}/.ssh/id_ed25519";
};
+ kj_gpg_private_key = {
+ path = "${config.home.homeDirectory}/.gnupg/private-key.asc";
+ mode = "0600";
+ };
};
};
@@ -92,4 +104,20 @@
enable = true;
enableZshIntegration = true;
};
+
+ programs.gpg = {
+ enable = true;
+ homedir = "${config.home.homeDirectory}/.gnupg";
+ };
+ services.gpg-agent = {
+ enable = true;
+ defaultCacheTtl = 1800;
+ maxCacheTtl = 7200;
+ pinentryFlavor = "curses";
+ };
+ home.activation.importGpgPrivateKey = config.lib.dag.entryAfter ["writeBoundary"] ''
+ export GNUPGHOME="${config.programs.gpg.homedir}"
+ $DRY_RUN_CMD ${pkgs.gnupg}/bin/gpg --batch --import "${config.sops.secrets.kj_gpg_private_key.path}"
+ echo "GPG private key imported from sops secret"
+ '';
}