mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Update to NixOs 21.11 and add dokuwiki
This commit is contained in:
parent
d8bbec67db
commit
a043edf25d
6 changed files with 52 additions and 9 deletions
19
modules/dokuwiki.nix
Normal file
19
modules/dokuwiki.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
configureWiki = name: {
|
||||
services.dokuwiki.sites = {
|
||||
"${name}.${config.networking.domain}" = {
|
||||
enable = true;
|
||||
stateDir = "/nix/var/data/dokuwiki/${name}/data";
|
||||
};
|
||||
};
|
||||
|
||||
services.phpfpm.pools."dokuwiki-${name}.${config.networking.domain}".phpPackage = lib.mkOverride 10 pkgs.php74;
|
||||
|
||||
services.nginx.virtualHosts."${name}.${config.networking.domain}" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
};
|
||||
};
|
||||
in
|
||||
configureWiki "anderia" // configureWiki "arkadia"
|
||||
Loading…
Add table
Add a link
Reference in a new issue