gitea->forgejo

This commit is contained in:
Daniel Flanagan 2024-07-24 10:13:15 -05:00
parent 474e76ba18
commit 94966a089e

View file

@ -609,7 +609,7 @@ sudo nix run nixpkgs#ipmitool -- raw 0x30 0x30 0x02 0xff 0x00
paths = [ paths = [
"/storage/files.lyte.dev" "/storage/files.lyte.dev"
"/storage/daniel" "/storage/daniel"
"/storage/gitea" # TODO: should maybe use configuration.nix's services.gitea.dump ? "/storage/forgejo" # TODO: should maybe use configuration.nix's services.forgejo.dump ?
"/storage/postgres-backups" "/storage/postgres-backups"
# https://github.com/dani-garcia/vaultwarden/wiki/Backing-up-your-vault # https://github.com/dani-garcia/vaultwarden/wiki/Backing-up-your-vault
@ -696,11 +696,13 @@ sudo nix run nixpkgs#ipmitool -- raw 0x30 0x30 0x02 0xff 0x00
]; ];
} }
{ {
services.gitea = { services.forgejo = {
enable = true; enable = true;
appName = "git.lyte.dev"; stateDir = "/storage/forgejo";
stateDir = "/storage/gitea";
settings = { settings = {
DEFAULT = {
APP_NAME = "git.lyte.dev";
};
server = { server = {
ROOT_URL = "https://git.lyte.dev"; ROOT_URL = "https://git.lyte.dev";
HTTP_ADDR = "127.0.0.1"; HTTP_ADDR = "127.0.0.1";
@ -721,7 +723,7 @@ sudo nix run nixpkgs#ipmitool -- raw 0x30 0x30 0x02 0xff 0x00
LEVEL = "Debug"; LEVEL = "Debug";
}; };
ui = { ui = {
THEMES = "catppuccin-mocha-sapphire,gitea,arc-green,auto,pitchblack"; THEMES = "catppuccin-mocha-sapphire,forgejo,arc-green,auto,pitchblack";
DEFAULT_THEME = "catppuccin-mocha-sapphire"; DEFAULT_THEME = "catppuccin-mocha-sapphire";
}; };
indexer = { indexer = {
@ -743,19 +745,19 @@ sudo nix run nixpkgs#ipmitool -- raw 0x30 0x30 0x02 0xff 0x00
type = "sqlite3"; type = "sqlite3";
}; };
}; };
# services.gitea-actions-runner.instances.main = { # services.forgejo-actions-runner.instances.main = {
# # TODO: simple git-based automation would be dope? maybe especially for # # TODO: simple git-based automation would be dope? maybe especially for
# # mirroring to github super easy? # # mirroring to github super easy?
# enable = false; # enable = false;
# }; # };
services.caddy.virtualHosts."git.lyte.dev" = { services.caddy.virtualHosts."git.lyte.dev" = {
extraConfig = '' extraConfig = ''
reverse_proxy :${toString config.services.gitea.settings.server.HTTP_PORT} reverse_proxy :${toString config.services.forgejo.settings.server.HTTP_PORT}
''; '';
}; };
services.caddy.virtualHosts."http://git.beefcake.lan" = { services.caddy.virtualHosts."http://git.beefcake.lan" = {
extraConfig = '' extraConfig = ''
reverse_proxy :${toString config.services.gitea.settings.server.HTTP_PORT} reverse_proxy :${toString config.services.forgejo.settings.server.HTTP_PORT}
''; '';
}; };
} }