Remove redundand dokuwii override+openssh settings
This commit is contained in:
parent
840eff4f97
commit
dd3325ab95
3 changed files with 6 additions and 16 deletions
|
@ -47,9 +47,11 @@
|
|||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
permitRootLogin = "no";
|
||||
passwordAuthentication = false;
|
||||
kbdInteractiveAuthentication = false;
|
||||
settings = {
|
||||
PermitRootLogin = "no";
|
||||
PasswordAuthentication = false;
|
||||
KbdInteractiveAuthentication = false;
|
||||
};
|
||||
};
|
||||
# That way we can't forget to disable the access logs for each individual website
|
||||
services.nginx.appendHttpConfig = ''
|
||||
|
|
|
@ -24,14 +24,6 @@ final: prev:
|
|||
];
|
||||
};
|
||||
|
||||
dokuwiki = prev.dokuwiki.overrideAttrs (oldAttrs: {
|
||||
installPhase = ''
|
||||
${oldAttrs.installPhase}
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
});
|
||||
|
||||
dokuwikiPlugins = {
|
||||
tag = final.stdenv.mkDerivation rec {
|
||||
name = "tag";
|
||||
|
|
|
@ -5,10 +5,6 @@
|
|||
baseDomain,
|
||||
...
|
||||
}: let
|
||||
inherit (builtins) any hasAttr isAttrs isBool isInt isList isString;
|
||||
inherit (lib) boolToString concatMapStringsSep concatStringsSep escapeShellArg flatten mapAttrsToList;
|
||||
|
||||
cfg = config.services.dokuwiki.sites.${dw_domain};
|
||||
fpm_pool = "dokuwiki-${dw_domain}";
|
||||
fpm_cfg = config.services.phpfpm.pools.${fpm_pool};
|
||||
dw_domain = "wiki.${baseDomain}";
|
||||
|
@ -58,7 +54,7 @@ in {
|
|||
package = pkgs.dokuwiki.overrideAttrs (oldAttrs: {
|
||||
name = "dokuwiki-${dw_domain}-with-acronyms-${oldAttrs.version}";
|
||||
postInstall = oldAttrs.postInstall or "" + ''
|
||||
ln -s ${acronyms_file} $out/share/dokuwiki/conf/acronyms.local.conf
|
||||
ln -sf ${acronyms_file} $out/share/dokuwiki/conf/acronyms.local.conf
|
||||
'';
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue