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 <noreply@anthropic.com>
This commit is contained in:
2026-02-13 09:38:16 -05:00
parent f8b344d26d
commit 096070bffe
2 changed files with 10 additions and 10 deletions

View File

@@ -11,11 +11,11 @@ A NixOS-based system for managing the three types of data in a computer:
## Quick Start ## Quick Start
```bash ```bash
# One-command setup from any git server # One-command setup from any git server (adjust port if needed)
nix run 'git+ssh://git@your-server/you/grapho.git' nix run 'git+ssh://git@your-server:2222/you/grapho.git'
# Or clone first, then run # 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 cd grapho
nix run . nix run .
``` ```
@@ -25,8 +25,8 @@ nix run .
### First Computer (Initial Setup) ### First Computer (Initial Setup)
```bash ```bash
# 1. Clone the repo # 1. Clone the repo (use ssh:// format for non-standard ports)
git clone git@your-server:you/grapho.git git clone ssh://git@your-server:2222/you/grapho.git
cd grapho cd grapho
# 2. Run setup (one command - includes all dependencies) # 2. Run setup (one command - includes all dependencies)
@@ -38,7 +38,7 @@ nix run .
# 4. Push config to your git server # 4. Push config to your git server
cd ~/.config/usync/config 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 git push -u origin main
``` ```
@@ -46,11 +46,11 @@ git push -u origin main
```bash ```bash
# One command from your git server # 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 # Choose option [2], enter your git URL and age key
# Or non-interactively: # 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 . -- <config-git-url> <your-age-key> nix run . -- <config-git-url> <your-age-key>
``` ```
@@ -78,7 +78,7 @@ Add to your flake.nix inputs, then import the module:
```nix ```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: # In your configuration:
imports = [ inputs.grapho.nixosModules.default ]; imports = [ inputs.grapho.nixosModules.default ];

View File

@@ -105,7 +105,7 @@
else else
echo "Error: Cannot find setup script" echo "Error: Cannot find setup script"
echo "Run from the repo directory, or clone it first:" 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 exit 1
fi fi
fi fi