Compare commits

..

3 Commits

Author SHA1 Message Date
jolheiser ec01830ff6
chore: sign tags and commits by default
Signed-off-by: jolheiser <git@jolheiser.com>
2024-07-10 11:55:21 -05:00
jolheiser f66a3fe2f3
feat: ssh signing
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2024-07-10 11:11:14 -05:00
jolheiser 2b9b540574
feat: jujutsu
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2024-07-10 09:58:01 -05:00
3 changed files with 62 additions and 37 deletions

View File

@ -14,6 +14,7 @@
./go.nix ./go.nix
./gpg.nix ./gpg.nix
#./helix.nix #./helix.nix
./jj.nix
./jq.nix ./jq.nix
./lazygit.nix ./lazygit.nix
./nushell.nix ./nushell.nix

View File

@ -1,18 +1,27 @@
{config, ...}: let {
key = "0xB853ADA5DA7BBF7A"; pkgs,
config,
...
}: let
insteadOf = prefix: domain: { insteadOf = prefix: domain: {
"https://${domain}/".insteadOf = "${prefix}:"; "https://${domain}/".insteadOf = "${prefix}:";
"git@${domain}:".insteadOf = "ssh:${prefix}:"; "git@${domain}:".insteadOf = "ssh:${prefix}:";
}; };
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAUxLwkJOlalAHTdkbh+m49XTZGKDqWz1o/o8OLmtQdX";
sshSigning = {
user.signingkey = key;
commit.gpgSign = true;
tag.gpgSign = true;
gpg = {
format = "ssh";
ssh.allowedSignersFile = "${pkgs.writeText "allowedSigners" "git@jolheiser.com ${key}"}";
};
};
in { in {
programs.git = { programs.git = {
enable = true; enable = true;
userName = "jolheiser"; userName = "jolheiser";
userEmail = "john.olheiser@gmail.com"; userEmail = "git@jolheiser.com";
signing = {
signByDefault = true;
key = key;
};
aliases = { aliases = {
wt = "worktree"; wt = "worktree";
ci = "commit -s -S -m"; ci = "commit -s -S -m";
@ -30,7 +39,8 @@ in {
}; };
lfs.enable = true; lfs.enable = true;
ignores = [".idea/" "result" "node_modules" "ve"]; ignores = [".idea/" "result" "node_modules" "ve"];
extraConfig = { extraConfig =
{
init.defaultBranch = "main"; init.defaultBranch = "main";
merge.conflictstyle = "zdiff3"; merge.conflictstyle = "zdiff3";
diff.colorMoved = "default"; diff.colorMoved = "default";
@ -51,16 +61,10 @@ in {
// insteadOf "gt" "gitea.com" // insteadOf "gt" "gitea.com"
// insteadOf "gl" "gitlab.com" // insteadOf "gl" "gitlab.com"
// insteadOf "cb" "codeberg.org"; // insteadOf "cb" "codeberg.org";
}; }
delta = { // sshSigning;
difftastic = {
enable = true; enable = true;
options = {
features = "ctp-mocha";
navigate = true;
light = false;
line-numbers = true;
side-by-side = true;
};
}; };
includes = [ includes = [
{ {

20
apps/nogui/jj.nix 100644
View File

@ -0,0 +1,20 @@
{pkgs, ...}: {
programs.jujutsu = {
enable = true;
settings = {
user = {
name = "jolheiser";
email = "git@jolheiser.com";
};
ui = {
diff.tool = ["${pkgs.difftastic}/bin/difft" "--color=always" "$left" "$right"];
editor = "hx";
};
signing = {
sign-all = true;
backend = "ssh";
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAUxLwkJOlalAHTdkbh+m49XTZGKDqWz1o/o8OLmtQdX";
};
};
};
}