mirror of
https://github.com/smg1024/nix-darwin.git
synced 2026-05-22 20:32:59 +09:00
feat: sops-nix configuration
encrypt personal ssh key for git
This commit is contained in:
parent
f86b032c4c
commit
63a3bb6e98
10 changed files with 98 additions and 91 deletions
16
home/ssh.nix
Normal file
16
home/ssh.nix
Normal 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 ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue