update ssh
This commit is contained in:
parent
d2a6aceff3
commit
b777814ff4
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
|
|
30
home-manager/sajenim/features/cli/ssh.nix
Normal file
30
home-manager/sajenim/features/cli/ssh.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJC2zR9w3y+OXEq7qcs8dIdSC2j4LUx2197fyXwR3aSLHwypodiZTdJTJkmklxxaUXmyi7CZUmp1LPx5vdLPgzI=
|
|
@ -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";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue