
- Set explicit git user for Forgejo service - Add SSH_USER configuration for proper SSH handling - Ensure compatibility with system SSH server
32 lines
699 B
Nix
32 lines
699 B
Nix
{ pkgs, config, ... }:
|
|
{
|
|
services.forgejo = {
|
|
enable = true;
|
|
user = "git"; # Explicitly set to 'git' user for SSH compatibility
|
|
};
|
|
|
|
services.forgejo.settings = {
|
|
DEFAULT = {
|
|
RUN_MODE = "prod";
|
|
};
|
|
service = {
|
|
DISABLE_REGISTRATION = true;
|
|
};
|
|
server = {
|
|
ROOT_URL = "https://git.geokkjer.eu";
|
|
SSH_DOMAIN = "git.geokkjer.eu";
|
|
SSH_PORT = 1337;
|
|
# Use system SSH server instead of built-in
|
|
DISABLE_SSH = false;
|
|
START_SSH_SERVER = false;
|
|
# Configure SSH user
|
|
SSH_USER = "git";
|
|
};
|
|
repository = {
|
|
ENABLE_PUSH_CREATE_USER = true;
|
|
};
|
|
other = {
|
|
SHOW_FOOTER_VERSION = true;
|
|
};
|
|
};
|
|
}
|