seperate out home config

This commit is contained in:
Osman Faruk Bayram 2025-02-05 00:41:36 +03:00
parent 8c176c2643
commit 6cf1be302f
9 changed files with 129 additions and 127 deletions

36
home/ssh.nix Normal file
View file

@ -0,0 +1,36 @@
{pkgs, ...}: {
programs.ssh = {
enable = true;
hashKnownHosts = true;
compression = true;
matchBlocks = {
"tartarus" = {
hostname = "192.168.0.4";
user = "osbm";
identityFile = "/home/osbm/.ssh/id_ed25519";
# setEnv = {
# "TERM" = "xterm-256color";
# };
# extraOptions = { # [ERROR] - (starship::print): Under a 'dumb' terminal (TERM=dumb).
# "RemoteCommand" = "fish";
# };
};
"ymir" = {
hostname = "192.168.0.2";
user = "osbm";
identityFile = "/home/osbm/.ssh/id_ed25519";
# setEnv = {
# "TERM" = "xterm-256color";
# };
# extraOptions = { # TODO fix the damn starship error
# "RemoteCommand" = "fish";
# };
};
"pochita" = {
hostname = "192.168.0.9";
user = "osbm";
identityFile = "/home/osbm/.ssh/id_ed25519";
};
};
};
}