oizys/hosts/algiz
2024-08-12 11:39:14 -05:00
..
default.nix pipeList -> listify 2024-08-12 11:39:14 -05:00
hardware-configuration.nix nixfmt-rfc-style now 2024-05-06 14:32:00 -05:00
pkgs.nix move pkgs out 2024-07-25 11:56:35 -05:00
README.md add more docs 2024-01-29 10:31:18 -06:00
system.nix lost the thread on this one 2024-08-11 08:29:46 -05:00

algiz

Setting up git user for use with gitea originally

sudo -u git ssh-keygen -t rsa -b 4096 -C "Gitea Host Key"
sudo -u git cat /home/git/.ssh/id_rsa.pub | sudo -u git tee -a /home/git/.ssh/authorized_keys
sudo -u git chmod 600 /home/git/.ssh/authorized_keys

/home/git/.ssh/authorized_keys should look like this:

# SSH pubkey from git user
ssh-rsa <Gitea Host Key>

# other keys from users
command="/usr/local/bin/gitea --config=/data/gitea/conf/app.ini serv key-1",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty <user pubkey>

To point gitea/forgejo to the shim gitea binary for SSH I symlink the current system version to /usr/local/bin/gitea.

ln -s /run/current-system/sw/bin/gitea /usr/local/bin/gitea