42 lines
816 B
Nix
42 lines
816 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
let cfg = config.services.gitea;
|
||
|
in {
|
||
|
users.users.git = {
|
||
|
description = "Gitea Service";
|
||
|
home = cfg.stateDir;
|
||
|
useDefaultShell = true;
|
||
|
group = "git";
|
||
|
isSystemUser = true;
|
||
|
};
|
||
|
users.groups.git = { };
|
||
|
|
||
|
services.gitea = {
|
||
|
enable = true;
|
||
|
user = "git";
|
||
|
domain = "walkah.dev";
|
||
|
appName = "walkah forge";
|
||
|
rootUrl = "https://walkah.dev/";
|
||
|
httpAddress = "0.0.0.0";
|
||
|
httpPort = 8003;
|
||
|
log.level = "Error";
|
||
|
lfs.enable = true;
|
||
|
|
||
|
disableRegistration = true;
|
||
|
cookieSecure = true;
|
||
|
|
||
|
settings = {
|
||
|
other.SHOW_FOOTER_VERSION = false;
|
||
|
repository.DEFAULT_BRANCH = "main";
|
||
|
server.SSH_DOMAIN = "git.walkah.dev";
|
||
|
};
|
||
|
|
||
|
dump.enable = false;
|
||
|
|
||
|
database = {
|
||
|
type = "postgres";
|
||
|
user = "git";
|
||
|
};
|
||
|
};
|
||
|
}
|