Started setup for easier gitea usage

This commit is contained in:
2025-08-13 17:07:03 +02:00
parent 87cf098372
commit f7efae09ed
7 changed files with 46 additions and 5 deletions

21
gitea.nix Normal file
View File

@ -0,0 +1,21 @@
{ config, pkgs, ... }:
{
programs.ssh = {
startAgent = true;
extraConfig = ''
Host gitea
HostName http://100.89.141.79:3000/
User cookiez
IdentityFile ~/.ssh/gitea
IdentitiesOnly yes
'';
};
environment.etc."ssh-keys/gitea".source = /etc/nixos/other/ssh-keys/gitea;
environment.etc."ssh-keys/gitea".mode = "0600";
# Optional: symlink to ~/.ssh
#environment.homeFiles = {
# ".ssh/gitea" = "/etc/ssh-keys/gitea";
#};
}