From 76edeae5bd7b2af6b22d3a142021f13bea2cb13d Mon Sep 17 00:00:00 2001 From: ChaotiCryptidz Date: Wed, 16 Feb 2022 09:24:00 +0000 Subject: [PATCH] ssh signing --- hosts/lappy/lappy.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hosts/lappy/lappy.nix b/hosts/lappy/lappy.nix index 6e76182..4f995c0 100644 --- a/hosts/lappy/lappy.nix +++ b/hosts/lappy/lappy.nix @@ -40,7 +40,17 @@ in { home-manager.users.root = { imports = with tree; [ home.base ]; }; home-manager.users.chaos = { programs.ssh.matchBlocks."*".identityFile = "${usb_data.ssh_priv_path}"; + programs.git = { + extraConfig = { + gpg = { format = "ssh"; }; + user = { + signingKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAeN3T1aZkTm5xS0b66cRDyKUbdEQCFyzVWXeW+eIbsa chaos@chaos"; + }; + commit = { gpgsign = "true";}; + tag = { gpgsign = "true";}; + }; + }; imports = with tree; [ home.base home.dev.all