mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 04:39:23 +08:00
modules.user.chn.ssh: fix
This commit is contained in:
@@ -16,32 +16,7 @@ inputs:
|
||||
{
|
||||
config =
|
||||
{
|
||||
programs =
|
||||
{
|
||||
git = { userName = "chn"; userEmail = "chn@chn.moe"; };
|
||||
ssh =
|
||||
{
|
||||
matchBlocks = rec
|
||||
{
|
||||
xmuhk = { host = "xmuhk"; hostname = "10.26.14.56"; user = "xmuhk"; };
|
||||
xmuhk2 = { host = "xmuhk2"; hostname = "183.233.219.132"; user = "xmuhk"; port = 62022; };
|
||||
jykang.setEnv.TERM = "chn_unset_ls_colors:chn_cd:linwei/chn:chn_debug:xterm-256color";
|
||||
"internal.jykang" = jykang;
|
||||
}
|
||||
// (builtins.listToAttrs (builtins.map
|
||||
(system: { name = system; value = { forwardAgent = true; extraOptions.AddKeysToAgent = "yes"; }; })
|
||||
[
|
||||
"vps6" "wireguard.vps6" "vps7" "wireguard.vps7" "wireguard.pc" "nas" "wireguard.nas" "pc"
|
||||
"xmupc1" "wireguard.xmupc1" "xmupc2" "wireguard.xmupc2" "one" "wireguard.one"
|
||||
]));
|
||||
extraConfig = inputs.lib.mkIf inputs.config.nixos.model.private
|
||||
''
|
||||
IdentityFile ~/.ssh/id_rsa
|
||||
IdentityFile ~/.ssh/xmuhk_id_rsa
|
||||
IdentityFile ~/.ssh/id_ed25519_sk
|
||||
'';
|
||||
};
|
||||
};
|
||||
programs.git = { userName = "chn"; userEmail = "chn@chn.moe"; };
|
||||
home =
|
||||
{
|
||||
file.groupshare.enable = false;
|
||||
|
||||
@@ -13,7 +13,7 @@ inputs:
|
||||
xmuhk = { host = "xmuhk"; hostname = "10.26.14.56"; user = "xmuhk"; };
|
||||
xmuhk2 = { host = "xmuhk2"; hostname = "183.233.219.132"; user = "xmuhk"; port = 62022; };
|
||||
jykang.setEnv.TERM = "chn_unset_ls_colors:chn_cd:linwei/chn:chn_debug:xterm-256color";
|
||||
"internal.jykang" = jykang;
|
||||
"wireguard.jykang" = jykang;
|
||||
}
|
||||
// (builtins.listToAttrs (builtins.map
|
||||
(system: { name = system; value = { forwardAgent = true; extraOptions.AddKeysToAgent = "yes"; }; })
|
||||
|
||||
Reference in New Issue
Block a user