Skip to content

Commit

Permalink
add git settings on mac to enable ssh commit signing via 1P
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikvtcodes committed Jan 14, 2025
1 parent 59e511a commit c73dfee
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion machines/darwin/pepacton/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Reference: https://daiderd.com/nix-darwin/manual/index.html
{pkgs, config, ...}: {
{pkgs, ...}: {
users.users.henrikvt = {
home = "/Users/henrikvt";
packages = with pkgs; [
Expand All @@ -15,6 +15,13 @@
rebuild = "darwin-rebuild switch --flake /Users/henrikvt/Desktop/Code/projects/nixmachines#pepacton";
};

home-manager.users.henrikvt.programs.git.extraConfig = {
user.signingkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICM+1ip8IBO+sK8J7cOwEtA/ba+tTtPHUGYC/KW6mppU";
gpg.format = "ssh";
gpg.ssh.program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign";
commit.gpgsign = true;
};

networking.hostName = "pepacton";

nixpkgs.hostPlatform = "aarch64-darwin";
Expand Down

0 comments on commit c73dfee

Please sign in to comment.