Compare commits
2
Commits
95f5b76629
...
cf1c4b9f31
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cf1c4b9f31 | ||
|
|
56f2295e6e |
@@ -71,7 +71,7 @@
|
|||||||
t3SshConfig = pkgs.writeText "t3-gitea-ssh-config" ''
|
t3SshConfig = pkgs.writeText "t3-gitea-ssh-config" ''
|
||||||
Host code.m3ta.dev
|
Host code.m3ta.dev
|
||||||
User gitea
|
User gitea
|
||||||
IdentityFile ~/.ssh/gitea
|
IdentityFile ${cockpitHome}/.ssh/gitea
|
||||||
IdentitiesOnly yes
|
IdentitiesOnly yes
|
||||||
'';
|
'';
|
||||||
|
|
||||||
@@ -137,6 +137,13 @@ in {
|
|||||||
environment =
|
environment =
|
||||||
{
|
{
|
||||||
T3CODE_PORT = toString port;
|
T3CODE_PORT = toString port;
|
||||||
|
# Deterministic service context: HOME explicit so ssh/git resolve
|
||||||
|
# ~ in every process this service spawns, however deep t3's
|
||||||
|
# pty/sandbox chain resets the environment.
|
||||||
|
HOME = cockpitHome;
|
||||||
|
# Independent of HOME entirely: git uses exactly this ssh config
|
||||||
|
# (absolute store path) for every gitea remote.
|
||||||
|
GIT_SSH_COMMAND = "ssh -F ${t3SshConfig}";
|
||||||
}
|
}
|
||||||
// gitIdentityEnv;
|
// gitIdentityEnv;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user