2025-12-25 14:00:03 +01:00
|
|
|
{ pkgs, lib, ... }:
|
|
|
|
|
{
|
|
|
|
|
users.users.me.openssh.authorizedKeys.keys = pkgs.lib.niveum.kieran.sshKeys;
|
2024-03-20 08:12:50 +01:00
|
|
|
programs.ssh.startAgent = true;
|
2025-12-02 21:37:02 +01:00
|
|
|
services.gnome.gcr-ssh-agent.enable = false;
|
2024-03-20 08:12:50 +01:00
|
|
|
|
2023-03-11 06:36:22 +01:00
|
|
|
home-manager.users.me = {
|
2024-03-20 08:12:50 +01:00
|
|
|
# https://discourse.nixos.org/t/gnome-keyring-and-ssh-agent-without-gnome/11663
|
|
|
|
|
xsession.profileExtra = ''
|
|
|
|
|
eval $(${pkgs.gnome3.gnome-keyring}/bin/gnome-keyring-daemon --daemonize --components=ssh,secrets)
|
|
|
|
|
export SSH_AUTH_SOCK
|
|
|
|
|
'';
|
2023-03-11 06:36:22 +01:00
|
|
|
};
|
|
|
|
|
|
2019-04-19 03:11:51 +02:00
|
|
|
home-manager.users.me.programs.ssh = {
|
|
|
|
|
enable = true;
|
2025-12-02 21:37:02 +01:00
|
|
|
enableDefaultConfig = false;
|
2023-08-06 21:18:42 +02:00
|
|
|
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 = {
|
2020-11-10 22:17:33 +01:00
|
|
|
hostname = "zaatar.r";
|
2020-10-31 20:51:25 +01:00
|
|
|
user = "root";
|
2025-12-25 14:00:03 +01:00
|
|
|
port = pkgs.lib.niveum.sshPort;
|
2020-10-31 20:51:25 +01:00
|
|
|
};
|
|
|
|
|
makanek = {
|
2025-12-25 14:00:03 +01:00
|
|
|
hostname = pkgs.lib.niveum.externalNetwork.makanek;
|
2022-05-20 23:16:46 +02:00
|
|
|
user = "root";
|
2025-12-25 14:00:03 +01:00
|
|
|
port = pkgs.lib.niveum.sshPort;
|
2022-05-20 23:16:46 +02:00
|
|
|
};
|
2022-05-24 11:09:02 +02:00
|
|
|
ful = {
|
2025-12-25 14:00:03 +01:00
|
|
|
hostname = pkgs.lib.niveum.externalNetwork.ful;
|
2020-10-31 20:51:25 +01:00
|
|
|
user = "root";
|
2025-12-25 14:00:03 +01:00
|
|
|
port = pkgs.lib.niveum.sshPort;
|
2019-04-19 03:11:51 +02:00
|
|
|
};
|
2022-03-16 16:04:22 +01:00
|
|
|
tahina = {
|
|
|
|
|
hostname = "tahina.r";
|
|
|
|
|
user = "root";
|
2025-12-25 14:00:03 +01:00
|
|
|
port = pkgs.lib.niveum.sshPort;
|
2022-03-16 16:04:22 +01:00
|
|
|
};
|
2022-11-25 11:27:43 +01:00
|
|
|
tabula = {
|
|
|
|
|
hostname = "tabula.r";
|
|
|
|
|
user = "root";
|
2025-12-25 14:00:03 +01:00
|
|
|
port = pkgs.lib.niveum.sshPort;
|
2022-11-25 11:27:43 +01:00
|
|
|
};
|
2020-11-06 10:52:30 +01:00
|
|
|
manakish = {
|
|
|
|
|
hostname = "manakish.r";
|
|
|
|
|
user = "kfm";
|
2025-12-25 14:00:03 +01:00
|
|
|
port = pkgs.lib.niveum.sshPort;
|
2020-11-06 10:52:30 +01:00
|
|
|
};
|
2025-05-21 10:51:05 +02:00
|
|
|
kabsa = {
|
|
|
|
|
hostname = "kabsa.r";
|
2019-06-15 20:11:39 +02:00
|
|
|
user = "kfm";
|
2025-12-25 14:00:03 +01:00
|
|
|
port = pkgs.lib.niveum.sshPort;
|
2019-06-15 20:11:39 +02:00
|
|
|
};
|
2024-03-19 20:31:02 +01:00
|
|
|
fatteh = {
|
2024-03-20 08:12:59 +01:00
|
|
|
hostname = "fatteh.r";
|
2024-03-19 20:31:02 +01:00
|
|
|
user = "kfm";
|
2025-12-25 14:00:03 +01:00
|
|
|
port = pkgs.lib.niveum.sshPort;
|
2024-03-19 20:31:02 +01:00
|
|
|
};
|
2019-04-19 03:11:51 +02:00
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|