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

67 lines
1.7 KiB
Nix
Raw Normal View History

{ pkgs, lib, ... }:
{
users.users.me.openssh.authorizedKeys.keys = pkgs.lib.niveum.kieran.sshKeys;
programs.ssh.startAgent = true;
2025-12-02 21:37:02 +01:00
services.gnome.gcr-ssh-agent.enable = false;
2023-03-11 06:36:22 +01:00
home-manager.users.me = {
# 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;
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 = pkgs.lib.niveum.sshPort;
2020-10-31 20:51:25 +01:00
};
makanek = {
hostname = pkgs.lib.niveum.externalNetwork.makanek;
user = "root";
port = pkgs.lib.niveum.sshPort;
};
ful = {
hostname = pkgs.lib.niveum.externalNetwork.ful;
2020-10-31 20:51:25 +01:00
user = "root";
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";
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";
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";
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";
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";
port = pkgs.lib.niveum.sshPort;
2024-03-19 20:31:02 +01:00
};
2025-12-29 12:27:40 +01:00
"*.onion".proxyCommand = "nc -xlocalhost:9050 %h %p";
2019-04-19 03:11:51 +02:00
};
};
}