2024-07-18 14:16:04 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2023-11-03 04:12:17 +00:00
|
|
|
let
|
2024-07-18 14:16:04 +00:00
|
|
|
socket = "${config.home.homeDirectory}/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh";
|
|
|
|
in
|
|
|
|
{
|
2023-11-03 04:12:17 +00:00
|
|
|
home.sessionVariables.SSH_AUTH_SOCK = socket;
|
|
|
|
programs.ssh = {
|
|
|
|
enable = true;
|
|
|
|
matchBlocks = {
|
|
|
|
# use the keychain on macOS
|
|
|
|
"*".extraOptions = lib.mkIf pkgs.stdenv.isDarwin {
|
|
|
|
UseKeychain = "yes";
|
|
|
|
AddKeysToAgent = "yes";
|
|
|
|
IdentityAgent = socket;
|
|
|
|
};
|
|
|
|
# entry for easy access to reMarkable tablet
|
|
|
|
remarkable = {
|
|
|
|
hostname = "10.11.99.1";
|
|
|
|
user = "root";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|