auto commit on build
hosts/crayon/git.nix overlays/ttpre.nix
This commit is contained in:
parent
cb143193ee
commit
43e6ff1487
2 changed files with 42 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ config, ... }:
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
cfg = config.services.forgejo;
|
||||
srv = cfg.settings.server;
|
||||
|
|
@ -12,6 +12,10 @@ in {
|
|||
locations."/".proxyPass = "http://localhost:${toString srv.HTTP_PORT}";
|
||||
};
|
||||
|
||||
users.users.${cfg.user}.packages = with pkgs; [
|
||||
mandoc
|
||||
ttpre
|
||||
];
|
||||
services.forgejo = {
|
||||
enable = true;
|
||||
database.type = "postgres";
|
||||
|
|
@ -31,6 +35,14 @@ in {
|
|||
DEFAULT_PUSH_CREATE_PRIVATE = false;
|
||||
ENABLE_PUSH_CREATE_USER = true;
|
||||
};
|
||||
"markup.mandoc" = {
|
||||
ENABLED = true;
|
||||
FILE_EXTENSIONS = ".1,.2,.3,.4,.5,.6,.7,.8,.9";
|
||||
RENDER_COMMAND = pkgs.writeShellScriptBin "mandoc-ttpre" ''
|
||||
${pkgs.mandoc}/bin/mandoc -O fragment -Tutf8 -Kutf-8 "$1" | ${pkgs.ttpre}/bin/ttpre
|
||||
'' + "/bin/mandoc-ttpre";
|
||||
IS_INPUT_FILE = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue