add ssh & ssh key code signing git support for WSL

This commit is contained in:
chaos 2023-10-14 12:40:30 +01:00
parent 0dc6c4cbf8
commit ec1c48835d
No known key found for this signature in database
2 changed files with 13 additions and 3 deletions

9
home/sshWSL.nix Normal file
View file

@ -0,0 +1,9 @@
{...}: {
programs.ssh.matchBlocks."*".identityFile = "/home/chaos/.ssh/id_ed25519";
programs.git.extraConfig = {
gpg.format = "ssh";
commit.gpgsign = "true";
tag.gpgsign = "true";
user.signingKey = "/home/chaos/.ssh/id_ed25519";
};
}

View file

@ -15,6 +15,7 @@
home.base home.base
home.dev.all home.dev.all
home.homeFolders home.homeFolders
home.sshWSL
home.programming.editors.vscode home.programming.editors.vscode
home.programming.languages.rust home.programming.languages.rust
@ -35,7 +36,7 @@
]; ];
}; };
wsl = { wsl = {
enable = true; enable = true;
defaultUser = "chaos"; defaultUser = "chaos";
interop.register = true; interop.register = true;