Skip to content

Commit

Permalink
git: switch to ssh signing
Browse files Browse the repository at this point in the history
  • Loading branch information
uku3lig committed Feb 3, 2024
1 parent ac8639c commit 5aa89cd
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions programs/git.nix
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
{pkgs, ...}: {
{
programs.git.enable = true;

hm = {
home.packages = with pkgs; [gh];
hm.programs = {
git = {
enable = true;
userName = "uku";
userEmail = "uku3lig@gmail.com";

programs = {
git = {
enable = true;
userName = "uku";
userEmail = "uku3lig@gmail.com";

signing = {
key = "0D2F5CFF394C558D4F1C58937D01D7B105E77166";
signByDefault = true;
};
signing = {
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN+7+KfdOrhcnHayxvOENUeMx8rE4XEIV/AxMHiaNUP8";
signByDefault = true;
};

extraConfig = {
init.defaultBranch = "main";
core.autocrlf = "input";
push.autoSetupRemote = true;
};
extraConfig = {
init.defaultBranch = "main";
core.autocrlf = "input";
push.autoSetupRemote = true;
gpg.format = "ssh";
};
};

gh = {
enable = true;
settings.git_protocol = "ssh";
};
};
}

0 comments on commit 5aa89cd

Please sign in to comment.