mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-10 20:20:41 +03:00
29 lines
479 B
Nix
29 lines
479 B
Nix
{
|
|
config,
|
|
inputs,
|
|
lib,
|
|
pkgs,
|
|
xlib,
|
|
...
|
|
}:
|
|
{
|
|
services = {
|
|
gitea = {
|
|
enable = true;
|
|
stateDir = "${xlib.dirs.services-mnt-folder}/gitea";
|
|
appName = "ZeroQ Gitea Service";
|
|
settings = {
|
|
server = {
|
|
DOMAIN = "gitea.local";
|
|
HTTP_PORT = 3000;
|
|
};
|
|
service.DISABLE_REGISTRATION = true;
|
|
};
|
|
};
|
|
};
|
|
|
|
systemd.tmpfiles.rules = [
|
|
"z ${config.services.gitea.stateDir} 0755 gitea gitea -"
|
|
];
|
|
}
|