Services: enable code indexing on Foregejo
This commit is contained in:
parent
abd2b8dfdf
commit
09af51fce8
|
@ -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; };
|
||||||
|
|
Loading…
Reference in a new issue