feat: sops-nix configuration

encrypt personal ssh key for git
This commit is contained in:
Poby 2026-03-14 21:22:56 +09:00
parent f86b032c4c
commit 63a3bb6e98
No known key found for this signature in database
10 changed files with 98 additions and 91 deletions

16
home/ssh.nix Normal file
View file

@ -0,0 +1,16 @@
{ config, ... }:
{
programs.ssh = {
enable = true;
enableDefaultConfig = false;
matchBlocks = {
"*" = { };
"github.com" = {
host = "github.com";
user = "git";
identitiesOnly = true;
identityFile = [ config.sops.secrets."github_ssh_key".path ];
};
};
};
}