add ssh config

This commit is contained in:
Charlotte 🦝 Delenk 2022-04-13 10:59:45 +01:00
parent 86d97d8aca
commit 8a87df73cf
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
2 changed files with 20 additions and 0 deletions

View file

@ -4,6 +4,7 @@ desktop: { pkgs, ... }: {
../programs/vim.nix
../programs/mail.nix
../programs/tmux.nix
../programs/ssh.nix
];
programs = {
zsh = {

19
config/programs/ssh.nix Normal file
View file

@ -0,0 +1,19 @@
{ ... }: {
programs.ssh = {
enable = true;
"build-nas" = {
hostname = "backup.int.chir.rs";
identitiesOnly = true;
identityFile = "~/.ssh/id_ed25519";
port = 22;
user = "darkkirb";
};
"build-pc" = {
hostname = "nutty-noon.int.chir.rs";
identitiesOnly = true;
identityFile = "~/.ssh/id_ed25519";
port = 22;
user = "darkkirb";
};
};
}