fix: sign again with jujutsu

This commit is contained in:
2025-11-05 04:42:14 +01:00
parent 87047b5b1b
commit 5122a8daad
2 changed files with 17 additions and 5 deletions

View File

@@ -28,9 +28,9 @@ in {
enable = mkEnableOption "enables signing jj commits";
sshKey = mkOption {
type = with types; nullOr (either path str);
example = "~/.ssh/id_ed25519.pub";
default = "~/.ssh/id_ed25519.pub";
description = "Path to the public SSH key or its content.";
example = "~/.ssh/id_ed25519";
default = "~/.ssh/id_ed25519";
description = "Path to the private SSH key for signing.";
};
};
};
@@ -54,8 +54,8 @@ in {
behavior = "own";
backend = "ssh";
key = cfg.signing.sshKey;
backends."ssh.allowed-signers" = "~/.ssh/allowed_signers";
backends."ssh.program" = "${pkgs.openssh}/bin/ssh-keygen";
backends.ssh.allowed-signers = "${config.home.homeDirectory}/.ssh/allowed_signers";
backends.ssh.program = "${pkgs.openssh}/bin/ssh-keygen";
};
aliases = {
blame = ["file" "annotate"];