gurkan
/
nixos-config
Archived
1
0
Fork 0
This repository has been archived on 2024-01-21. You can view files and clone it, but cannot push or open issues or pull requests.
nixos-config/modules/server/gitea.nix

43 lines
1008 B
Nix
Raw Permalink Normal View History

2021-06-25 13:49:04 +02:00
{ lib, config, ... }:
2023-07-06 11:14:02 +02:00
let
baseconfig = { allowUnfree = true; };
unstable = import (
fetchTarball https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz
) { config = baseconfig; };
in
2021-06-25 13:49:04 +02:00
{
services.gitea = {
enable = true;
2023-07-06 11:14:02 +02:00
package = unstable.gitea;
2021-06-25 13:49:04 +02:00
appName = "My git forks";
extraConfig = ''
[DEFAULT]
WORK_PATH=/var/lib/gitea
'';
2021-06-25 13:49:04 +02:00
settings = {
2023-02-01 23:12:38 +01:00
service.DISABLE_REGISTRATION = true;
log.LEVEL= "Warn";
2022-05-20 15:10:39 +02:00
repository = {
DEFAULT_REPO_UNITS = "repo.code,repo.releases";
2023-12-08 19:33:48 +01:00
DEFAULT_BRANCH = "master";
2022-05-20 15:10:39 +02:00
};
2021-06-25 13:49:04 +02:00
server = {
2023-07-06 11:14:02 +02:00
ROOT_URL = "https://git.gurkan.in";
HTTP_ADDR = "127.0.0.1";
DOMAIN = "git.gurkan.in";
2021-06-25 13:49:04 +02:00
LANDING_PAGE = "explore";
};
2022-05-20 15:10:39 +02:00
ui = {
SHOW_USER_EMAIL = false;
2023-07-14 14:31:48 +02:00
DEFAULT_THEME = "arc-green";
2022-05-20 15:10:39 +02:00
};
2021-06-25 13:49:04 +02:00
"ui.meta" = {
2022-05-20 15:10:39 +02:00
DESCRIPTION = "This is where I fork my stuff";
2021-06-25 13:49:04 +02:00
};
other = {
SHOW_FOOTER_VERSION = false;
};
};
};
}