Forum still not working...
This commit is contained in:
parent
3cb6dc51fb
commit
edb61bfb7d
|
@ -90,6 +90,7 @@ in {
|
||||||
unzip
|
unzip
|
||||||
vim
|
vim
|
||||||
wget
|
wget
|
||||||
|
xclip
|
||||||
yubikey-manager
|
yubikey-manager
|
||||||
yubikey-personalization
|
yubikey-personalization
|
||||||
];
|
];
|
||||||
|
|
|
@ -42,17 +42,17 @@ in {
|
||||||
environment.etc = {
|
environment.etc = {
|
||||||
"selby-forum/config-defaults.php" = {
|
"selby-forum/config-defaults.php" = {
|
||||||
uid = config.users.users.nginx.uid;
|
uid = config.users.users.nginx.uid;
|
||||||
mode = "0400";
|
mode = "0600";
|
||||||
source = ./forum-config/config-defaults.php;
|
source = ./forum-config/config-defaults.php;
|
||||||
};
|
};
|
||||||
"selby-forum/constants.php" = {
|
"selby-forum/constants.php" = {
|
||||||
uid = config.users.users.nginx.uid;
|
uid = config.users.users.nginx.uid;
|
||||||
mode = "0400";
|
mode = "0600";
|
||||||
source = ./forum-config/constants.php;
|
source = ./forum-config/constants.php;
|
||||||
};
|
};
|
||||||
"selby-forum/config.php" = {
|
"selby-forum/config.php" = {
|
||||||
uid = config.users.users.nginx.uid;
|
uid = config.users.users.nginx.uid;
|
||||||
mode = "0400";
|
mode = "0600";
|
||||||
text = import ./forum-config/config.php.nix {
|
text = import ./forum-config/config.php.nix {
|
||||||
config = {
|
config = {
|
||||||
database-host = "127.0.0.1:${mariadb-port}";
|
database-host = "127.0.0.1:${mariadb-port}";
|
||||||
|
@ -108,6 +108,12 @@ in {
|
||||||
|
|
||||||
phpOptions = ''
|
phpOptions = ''
|
||||||
memory_limit = 500M
|
memory_limit = 500M
|
||||||
|
file_uploads = On
|
||||||
|
allow_url_fopen = On
|
||||||
|
short_open_tag = On
|
||||||
|
upload_max_filesize = 100M
|
||||||
|
max_execution_time = 360
|
||||||
|
date.timezone = America/Winnipeg
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -158,8 +158,8 @@ in {
|
||||||
|
|
||||||
doom-emacs-config = pkgs.fetchgit {
|
doom-emacs-config = pkgs.fetchgit {
|
||||||
url = "https://git.fudo.org/niten/doom-emacs.git";
|
url = "https://git.fudo.org/niten/doom-emacs.git";
|
||||||
rev = "ecf6d3e1701dfbf984cc5842df564c53f59c73fc";
|
rev = "90c3ef3a0797dfbd710498e43a40d0e062615709";
|
||||||
sha256 = "0n4hwp2pdr9dgcm9fsq98ql3k834vf876p1bl98cnd98aj9my1b6";
|
sha256 = "03a1nad7w7l5l6q2ajyd4scj5qw9kijbkv8b9f686qzqajc5iawy";
|
||||||
};
|
};
|
||||||
|
|
||||||
vanilla-forum = import ./vanilla-forum.nix { pkgs = pkgs; };
|
vanilla-forum = import ./vanilla-forum.nix { pkgs = pkgs; };
|
||||||
|
|
|
@ -16,10 +16,6 @@ in pkgs.stdenv.mkDerivation {
|
||||||
|
|
||||||
nativeBuildInputs = with pkgs; [ unzip ];
|
nativeBuildInputs = with pkgs; [ unzip ];
|
||||||
|
|
||||||
# unpackPhase = ''
|
|
||||||
# ${pkgs.unzip}/bin/unzip $src
|
|
||||||
# '';
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir $out
|
mkdir $out
|
||||||
cp -aR -t $out applications bootstrap.php dist js library locales plugins resources themes uploads vendor
|
cp -aR -t $out applications bootstrap.php dist js library locales plugins resources themes uploads vendor
|
||||||
|
|
|
@ -15,7 +15,8 @@ in {
|
||||||
|
|
||||||
services.gpg-agent.enable = true;
|
services.gpg-agent.enable = true;
|
||||||
|
|
||||||
home.file = {
|
home = {
|
||||||
|
file = {
|
||||||
".doom.d" = {
|
".doom.d" = {
|
||||||
source = pkgs.doom-emacs-config;
|
source = pkgs.doom-emacs-config;
|
||||||
recursive = true;
|
recursive = true;
|
||||||
|
@ -31,4 +32,12 @@ in {
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sessionVariables = {
|
||||||
|
EDITOR = "emacsclient -t";
|
||||||
|
ALTERNATE_EDITOR = "";
|
||||||
|
|
||||||
|
HISTCONTROL = "ignoredups:ignorespace";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue