flakes/containers/citrine/configuration.nix

42 lines
1.1 KiB
Nix
Raw Normal View History

2026-03-16 02:32:09 +11:00
{ config, lib, ... }: {
2026-03-16 00:48:51 +11:00
system.stateVersion = "25.11";
networking.firewall.allowedTCPPorts = [ 3000 ];
networking.firewall.allowedUDPPorts = [ 3000 ];
systemd.tmpfiles.rules = [
"L+ /persist/forgejo/custom/templates - - - - ${./templates}"
];
2026-03-16 00:48:51 +11:00
services.forgejo = {
enable = true;
lfs.enable = true;
settings = {
DEFAULT.APP_NAME = "Garden";
2026-03-16 00:48:51 +11:00
server = {
DOMAIN = "garden.lava.moe";
ROOT_URL = "https://garden.lava.moe/";
HTTP_PORT = 3000;
};
2026-03-16 02:32:09 +11:00
ui = lib.mkForce {
DEFAULT_THEME = "catppuccin-maroon-auto";
THEMES = lib.strings.concatMapStringsSep "," (x: "${x}-auto") [
"catppuccin-pink"
"catppuccin-maroon"
"catppuccin-flamingo"
"catppuccin-rosewater"
"forgejo"
"gitea"
];
};
api.ENABLE_SWAGGER = false;
other.SHOW_FOOTER_TEMPLATE_LOAD_TIME = false;
service.DISABLE_REGISTRATION = true;
2026-03-16 00:48:51 +11:00
};
stateDir = "/persist/forgejo";
};
2026-03-16 02:32:09 +11:00
catppuccin.forgejo.enable = true;
environment.systemPackages = [ config.services.forgejo.package ];
2026-03-16 00:48:51 +11:00
}