mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-28 17:22:33 +01:00
* feat(ssh): reuse every connection for 30 s to save touches
Assisted-by: DeepSeek Harness (claude-opus-5-5)
* feat(git): sign commits with the OpenPGP key on the CanoKeys
Assisted-by: DeepSeek Harness (claude-opus-5-5)
Assisted-by: DeepSeek Harness (claude-fable-5-2)
* flake.lock: Update
Flake lock file updates:
• Updated input 'mysecrets':
'git+ssh://git@github.com/ryan4yin/nix-secrets.git?ref=refs/heads/main&rev=6ab2a713e5938e1bb8ef2d33acab632ba0bd5331&shallow=1' (2026-11-11)
→ 'git+ssh://git@github.com/ryan4yin/nix-secrets.git?ref=refs/heads/main&rev=eba74369427e98b0246f6f0f35e80ddcc6808995&shallow=1' (2026-11-19)
18 lines
677 B
Nix
18 lines
677 B
Nix
{
|
|
# Sign commits with the OpenPGP [S] subkey that both CanoKeys hold; the card's
|
|
# touch cache covers a burst of commits. Desktop layer only, where the cards
|
|
# are used; setup: docs/security-keys.md#commit-signing.
|
|
programs.git = {
|
|
signing.key = "BB8DFBAC2E9BE8F15649E3AA1F2440D500288E48"; # primary; gpg picks its [S] subkey
|
|
# Not signByDefault: its tag.gpgSign turns every lightweight `git tag` into an annotated one.
|
|
settings.commit.gpgSign = true;
|
|
# The personal key carries no work address, so work commits stay unsigned.
|
|
includes = [
|
|
{
|
|
condition = "gitdir:~/work/";
|
|
contents.commit.gpgSign = false;
|
|
}
|
|
];
|
|
};
|
|
}
|