From 096070bffe5c4d3f24b6741fddfeffe154a916c1 Mon Sep 17 00:00:00 2001 From: Brandon Lucas Date: Fri, 13 Feb 2026 09:38:16 -0500 Subject: [PATCH] Update SSH URLs to use port 2222 format Use ssh://git@server:2222/user/repo.git format for non-standard SSH ports in README and flake.nix examples. Co-Authored-By: Claude Opus 4.5 --- README.md | 18 +++++++++--------- flake.nix | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 8cf2342..01f1b9f 100644 --- a/README.md +++ b/README.md @@ -11,11 +11,11 @@ A NixOS-based system for managing the three types of data in a computer: ## Quick Start ```bash -# One-command setup from any git server -nix run 'git+ssh://git@your-server/you/grapho.git' +# One-command setup from any git server (adjust port if needed) +nix run 'git+ssh://git@your-server:2222/you/grapho.git' # Or clone first, then run -git clone git@your-server:you/grapho.git +git clone ssh://git@your-server:2222/you/grapho.git cd grapho nix run . ``` @@ -25,8 +25,8 @@ nix run . ### First Computer (Initial Setup) ```bash -# 1. Clone the repo -git clone git@your-server:you/grapho.git +# 1. Clone the repo (use ssh:// format for non-standard ports) +git clone ssh://git@your-server:2222/you/grapho.git cd grapho # 2. Run setup (one command - includes all dependencies) @@ -38,7 +38,7 @@ nix run . # 4. Push config to your git server cd ~/.config/usync/config -git remote add origin git@your-server:you/grapho-config.git +git remote add origin ssh://git@your-server:2222/you/grapho-config.git git push -u origin main ``` @@ -46,11 +46,11 @@ git push -u origin main ```bash # One command from your git server -nix run 'git+ssh://git@your-server/you/grapho.git' +nix run 'git+ssh://git@your-server:2222/you/grapho.git' # Choose option [2], enter your git URL and age key # Or non-interactively: -git clone git@your-server:you/grapho.git && cd grapho +git clone ssh://git@your-server:2222/you/grapho.git && cd grapho nix run . -- ``` @@ -78,7 +78,7 @@ Add to your flake.nix inputs, then import the module: ```nix { - inputs.grapho.url = "git+ssh://git@your-server/you/grapho.git"; + inputs.grapho.url = "git+ssh://git@your-server:2222/you/grapho.git"; # In your configuration: imports = [ inputs.grapho.nixosModules.default ]; diff --git a/flake.nix b/flake.nix index 8ec23a6..820c289 100644 --- a/flake.nix +++ b/flake.nix @@ -105,7 +105,7 @@ else echo "Error: Cannot find setup script" echo "Run from the repo directory, or clone it first:" - echo " git clone git@your-server:you/grapho.git" + echo " git clone ssh://git@your-server:2222/you/grapho.git" exit 1 fi fi