Forum still not working...

This commit is contained in:
root 2021-01-21 16:48:52 -06:00
parent 3cb6dc51fb
commit edb61bfb7d
5 changed files with 29 additions and 17 deletions

View File

@ -90,6 +90,7 @@ in {
unzip
vim
wget
xclip
yubikey-manager
yubikey-personalization
];

View File

@ -42,17 +42,17 @@ in {
environment.etc = {
"selby-forum/config-defaults.php" = {
uid = config.users.users.nginx.uid;
mode = "0400";
mode = "0600";
source = ./forum-config/config-defaults.php;
};
"selby-forum/constants.php" = {
uid = config.users.users.nginx.uid;
mode = "0400";
mode = "0600";
source = ./forum-config/constants.php;
};
"selby-forum/config.php" = {
uid = config.users.users.nginx.uid;
mode = "0400";
mode = "0600";
text = import ./forum-config/config.php.nix {
config = {
database-host = "127.0.0.1:${mariadb-port}";
@ -108,6 +108,12 @@ in {
phpOptions = ''
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
'';
};
};

View File

@ -158,8 +158,8 @@ in {
doom-emacs-config = pkgs.fetchgit {
url = "https://git.fudo.org/niten/doom-emacs.git";
rev = "ecf6d3e1701dfbf984cc5842df564c53f59c73fc";
sha256 = "0n4hwp2pdr9dgcm9fsq98ql3k834vf876p1bl98cnd98aj9my1b6";
rev = "90c3ef3a0797dfbd710498e43a40d0e062615709";
sha256 = "03a1nad7w7l5l6q2ajyd4scj5qw9kijbkv8b9f686qzqajc5iawy";
};
vanilla-forum = import ./vanilla-forum.nix { pkgs = pkgs; };

View File

@ -16,10 +16,6 @@ in pkgs.stdenv.mkDerivation {
nativeBuildInputs = with pkgs; [ unzip ];
# unpackPhase = ''
# ${pkgs.unzip}/bin/unzip $src
# '';
installPhase = ''
mkdir $out
cp -aR -t $out applications bootstrap.php dist js library locales plugins resources themes uploads vendor

View File

@ -15,7 +15,8 @@ in {
services.gpg-agent.enable = true;
home.file = {
home = {
file = {
".doom.d" = {
source = pkgs.doom-emacs-config;
recursive = true;
@ -31,4 +32,12 @@ in {
'';
};
};
sessionVariables = {
EDITOR = "emacsclient -t";
ALTERNATE_EDITOR = "";
HISTCONTROL = "ignoredups:ignorespace";
};
};
}