63 lines
1.1 KiB
Nix
63 lines
1.1 KiB
Nix
{
|
|
inputs,
|
|
pkgs,
|
|
secrets,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
inputs.catppuccin.nixosModules.catppuccin
|
|
];
|
|
|
|
# Catppuccin Mocha Style
|
|
|
|
catppuccin.gitea = {
|
|
enable = true;
|
|
accent = "pink";
|
|
flavor = "mocha";
|
|
};
|
|
|
|
services.gitea = {
|
|
enable = true;
|
|
user = "git";
|
|
group = "git";
|
|
|
|
stateDir = "/var/lib/gitea";
|
|
|
|
database = {
|
|
type = "sqlite3";
|
|
};
|
|
|
|
settings = {
|
|
"DEFAULT" = {
|
|
APP_NAME = "ColorSkyFun's Gitea";
|
|
};
|
|
server = {
|
|
HTTP_ADDR = "localhost";
|
|
ROOT_URL = "https://git.colorsky.fun:8443";
|
|
DOMAIN = "git.colorsky.fun";
|
|
};
|
|
service = {
|
|
DEFAULT_ALLOW_CREATE_ORGANIZATION = false;
|
|
NO_REPLY_ADDRESS = "noreply@colorsky.fun";
|
|
};
|
|
mailer = {
|
|
ENABLED = true;
|
|
PROTOCOL = "smtp+starttls";
|
|
}
|
|
// secrets.strings.gitea.mailer;
|
|
};
|
|
};
|
|
|
|
users.groups.git = { };
|
|
|
|
users.users.git = {
|
|
isNormalUser = true;
|
|
home = "/var/lib/gitea";
|
|
extraGroups = [ "git" ];
|
|
packages = with pkgs; [
|
|
gitea
|
|
];
|
|
};
|
|
}
|