1
0
Fork 0

Services: enable code indexing on Foregejo

This commit is contained in:
Aires 2024-09-28 13:18:46 -04:00
parent abd2b8dfdf
commit 09af51fce8

View file

@ -57,16 +57,10 @@ in
forgejo = { forgejo = {
enable = true; enable = true;
settings.server = { settings.server = {
DOMAIN = DOMAIN = pkgs.util.getDomainFromURL cfg.url;
let
parsedURL = (lib.strings.splitString "." cfg.url);
in
builtins.concatStringsSep "." [
(builtins.elemAt parsedURL 1)
(builtins.elemAt parsedURL 2)
];
ROOT_URL = cfg.url; ROOT_URL = cfg.url;
HTTP_PORT = 3000; HTTP_PORT = 3000;
REPO_INDEXER_ENABLED = true; # Enable code indexing
}; };
useWizard = true; useWizard = true;
} // lib.optionalAttrs (cfg.home != null) { stateDir = cfg.home; }; } // lib.optionalAttrs (cfg.home != null) { stateDir = cfg.home; };