From 85a1c2c3b145d833bd83fa441fd54c5c7f2ffbd4 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 6 Jul 2025 12:48:10 -0700 Subject: add secrets and configurations for cloudflared --- nix/users/fcuny/ssh.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'nix/users') diff --git a/nix/users/fcuny/ssh.nix b/nix/users/fcuny/ssh.nix index ec407ce..322a8bc 100644 --- a/nix/users/fcuny/ssh.nix +++ b/nix/users/fcuny/ssh.nix @@ -1,4 +1,4 @@ -{ config, ... }: +{ pkgs, config, ... }: { # https://github.com/nix-community/home-manager/blob/master/modules/programs/ssh.nix programs.ssh = { @@ -10,6 +10,9 @@ controlPath = "${config.home.homeDirectory}/.ssh/sockets/S.%r@%h:%p"; matchBlocks = { + "git.fcuny.net" = { + proxyCommand = "${pkgs.cloudflared}/bin/cloudflared access ssh --hostname %h"; + }; "github.com" = { hostname = "github.com"; user = "git"; -- cgit v1.2.3