1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 18:21:07 +01:00
Files
niveum/configs/ssh.nix

46 lines
974 B
Nix
Raw Normal View History

{ pkgs, config, lib, ... }:
2019-04-19 03:11:51 +02:00
let
inherit (import <niveum/lib>) sshPort kieran;
2019-04-19 03:11:51 +02:00
in {
services.xserver.displayManager.sessionCommands = "${pkgs.openssh}/bin/ssh-add";
2019-04-19 03:11:51 +02:00
programs.ssh.startAgent = true;
users.users.me.openssh.authorizedKeys.keys = kieran.sshKeys pkgs;
2019-04-19 03:11:51 +02:00
home-manager.users.me.programs.ssh = {
enable = true;
matchBlocks = {
2020-07-27 13:38:24 +02:00
"github.com" = {
hostname = "ssh.github.com";
port = 443;
};
2020-10-28 21:56:14 +01:00
zaatar = {
hostname = "zaatar.r";
2020-10-31 20:51:25 +01:00
user = "root";
port = sshPort;
};
makanek = {
2020-11-03 20:18:57 +01:00
hostname = "makanek.r";
2020-10-31 20:51:25 +01:00
user = "root";
2019-04-19 03:11:51 +02:00
port = sshPort;
};
2020-11-06 10:52:30 +01:00
manakish = {
hostname = "manakish.r";
user = "kfm";
port = sshPort;
};
2020-10-18 14:02:14 +02:00
toum = {
hostname = "toum.r";
user = "root";
port = sshPort;
2019-04-19 03:11:51 +02:00
};
2019-06-15 20:11:39 +02:00
wilde = {
hostname = "wilde.r";
user = "kfm";
port = sshPort;
};
2019-04-19 03:11:51 +02:00
};
};
}