update ssh

This commit is contained in:
♥ Minnie ♥ 2025-02-16 20:47:00 +08:00
parent d2a6aceff3
commit b777814ff4
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
5 changed files with 31 additions and 18 deletions

View file

@ -2,21 +2,7 @@
imports = [
./git.nix
./nvim.nix
./ssh.nix
./zsh.nix
];
programs.ssh = {
enable = true;
matchBlocks."viridian" = {
hostname = "viridian.home.arpa";
identityFile = "/home/sajenim/.ssh/sajenim_sk";
port = 22;
};
matchBlocks."lavender" = {
hostname = "lavender.home.arpa";
identityFile = "/home/sajenim/.ssh/sajenim_sk";
port = 22;
};
};
}

View file

@ -5,7 +5,6 @@
userEmail = "its.jassy@pm.me";
extraConfig = {
init.defaultBranch = "master";
core.sshCommand = "ssh -i ~/.ssh/forgejo_sk -F /dev/null";
commit.gpgsign = "true";
user.signingkey = "8563E358D4E8040E";
};

View file

@ -0,0 +1,30 @@
{...}: {
programs.ssh = {
enable = true;
matchBlocks = {
"viridian" = {
hostname = "viridian.home.arpa";
user = "sajenim";
identityFile = "/home/sajenim/.ssh/sajenim_sk";
};
"lavender" = {
hostname = "lavender.home.arpa";
user = "sajenim";
identityFile = "/home/sajenim/.ssh/sajenim_sk";
};
"sajenim-github" = {
hostname = "github.com";
user = "git";
identityFile = "/home/sajenim/.ssh/sajenim-github_sk";
};
"jasmine-forgejo" = {
hostname = "git.sajenim.dev";
user = "forgejo";
identityFile = "/home/sajenim/.ssh/jasmine-forgejo_sk";
};
};
};
}

View file

@ -1 +0,0 @@
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJC2zR9w3y+OXEq7qcs8dIdSC2j4LUx2197fyXwR3aSLHwypodiZTdJTJkmklxxaUXmyi7CZUmp1LPx5vdLPgzI=

View file

@ -15,7 +15,6 @@
shell = pkgs.zsh;
openssh.authorizedKeys.keyFiles = [
"${inputs.self}/home-manager/sajenim/sajenim_sk.pub"
"${inputs.self}/home-manager/sajenim/p6p_biometric.pub"
];
hashedPassword = "$y$j9T$qIhW5qL9J9w.w6JWa.bGo/$oddG3HJyOZ1mwHzYnYPJ/MzN38oHEBEvPDc0sB3rAf9";
};