mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Add template to dokuwiki
This commit is contained in:
parent
0fca457d7a
commit
13d23c7bb9
1 changed files with 15 additions and 0 deletions
|
|
@ -3,6 +3,16 @@ with lib;
|
||||||
let
|
let
|
||||||
cfg = config.custom.services.dokuwiki;
|
cfg = config.custom.services.dokuwiki;
|
||||||
|
|
||||||
|
template-chippedsnow = pkgs.stdenv.mkDerivation {
|
||||||
|
name = "chippedsnow";
|
||||||
|
src = builtins.fetchGit {
|
||||||
|
url = "ssh://git@gitlab.com/desbest/Chipped-Snow-Dokuwiki-Template.git";
|
||||||
|
ref = "master";
|
||||||
|
rev = "61e525236063714cade90beb1401cde2c75e4c88";
|
||||||
|
};
|
||||||
|
installPhase = "mkdir -p $out; cp -R * $out/";
|
||||||
|
};
|
||||||
|
|
||||||
configureWiki = name: {
|
configureWiki = name: {
|
||||||
|
|
||||||
sops.secrets."usersFile-${name}" = {
|
sops.secrets."usersFile-${name}" = {
|
||||||
|
|
@ -17,6 +27,11 @@ let
|
||||||
stateDir = "/nix/var/data/dokuwiki/${name}/data";
|
stateDir = "/nix/var/data/dokuwiki/${name}/data";
|
||||||
usersFile = config.sops.secrets."usersFile-${name}".path;
|
usersFile = config.sops.secrets."usersFile-${name}".path;
|
||||||
disableActions = "register";
|
disableActions = "register";
|
||||||
|
templates = [ template-chippedsnow ];
|
||||||
|
extraConfig = ''
|
||||||
|
$conf['title'] = 'Chroniques d\'Arkadia';
|
||||||
|
$conf['template'] = 'chippedsnow';
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue