83 lines
2.2 KiB
Nix
83 lines
2.2 KiB
Nix
{ config, pkgs, lib, ... }: {
|
|
|
|
imports = [ ../../shared/dokuwiki_module.nix ];
|
|
disabledModules = [ <nixpkgs/nixos/modules/services/web-apps/dokuwiki.nix> ];
|
|
services.nginx.virtualHosts."new.hackens.org" = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
};
|
|
|
|
services.dokuwiki.sites."new.hackens.org" = {
|
|
enable = false; # true;
|
|
settings = {
|
|
template = "bootstrap3";
|
|
license = "cc-by-sa";
|
|
title = "hackENS";
|
|
lang = "fr";
|
|
breadcrumbs = 0;
|
|
yourarehere = true;
|
|
userewrite = 1;
|
|
useacl = true;
|
|
htmlok = 1;
|
|
target._raw = ''
|
|
array(
|
|
'extern' => '_tab'
|
|
);
|
|
'';
|
|
sitemap = 7;
|
|
disableactions = "register";
|
|
superuser = "@admin";
|
|
start = "accueil";
|
|
htmlmail = 0;
|
|
tpl.bootstrap3 = {
|
|
showAddNewPage = "logged";
|
|
fluidContainer = 0;
|
|
};
|
|
};
|
|
|
|
plugins = [
|
|
|
|
(pkgs.stdenv.mkDerivation {
|
|
name = "catlist";
|
|
src = pkgs.fetchFromGitHub {
|
|
owner = "xif-fr";
|
|
repo = "dokuwiki-plugin-catlist";
|
|
rev = "89e024cbf3c0e30def6db6651c72eb76de396785";
|
|
hash = "sha256-2GAUHxK3dnDhXIftd2luxmn1b84ABZvfjHBMQWeDiTs=";
|
|
};
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
cp -R * $out/
|
|
'';
|
|
})
|
|
(pkgs.stdenv.mkDerivation {
|
|
name = "commonmark";
|
|
# Download the theme from the dokuwiki site
|
|
src = pkgs.fetchzip {
|
|
url =
|
|
"https://github.com/clockoon/dokuwiki-plugin-commonmark/releases/download/v1.2.1/release.tar.gz";
|
|
sha256 = "sha256-3fpN7SSDDQ3QAmzRuG5UMYrtGeL3ogiooPKc6g1gxRg=";
|
|
};
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
cp -R * $out/
|
|
'';
|
|
})
|
|
|
|
];
|
|
templates = [
|
|
(pkgs.stdenv.mkDerivation rec {
|
|
name = "bootstrap3";
|
|
version = "2022-07-27";
|
|
src = pkgs.fetchFromGitHub {
|
|
owner = "giterlizzi";
|
|
repo = "dokuwiki-template-bootstrap3";
|
|
rev = "v${version}";
|
|
hash = "sha256-B3Yd4lxdwqfCnfmZdp+i/Mzwn/aEuZ0ovagDxuR6lxo=";
|
|
};
|
|
installPhase = "mkdir -p $out; cp -R * $out/";
|
|
})
|
|
];
|
|
};
|
|
|
|
}
|