mirror of
https://github.com/daylinmorgan/oizys.git
synced 2025-02-23 16:15:51 -06:00
20 lines
377 B
Nix
20 lines
377 B
Nix
{
|
|
enabled,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
|
|
oizys = {
|
|
rune.motd = enabled;
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
(writeShellScriptBin "gitea" ''
|
|
ssh -p 2222 -o StrictHostKeyChecking=no git@127.0.0.1 "SSH_ORIGINAL_COMMAND=\"$SSH_ORIGINAL_COMMAND\" $0 $@"
|
|
'')
|
|
];
|
|
|
|
# git user handles the forgjo ssh authentication
|
|
users.users.git.isNormalUser = true;
|
|
}
|