Started setup for easier gitea usage
This commit is contained in:
21
gitea.nix
Normal file
21
gitea.nix
Normal 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";
|
||||
#};
|
||||
}
|
||||
Reference in New Issue
Block a user