Skip to content

Commit

Permalink
hardcode self with system
Browse files Browse the repository at this point in the history
  • Loading branch information
albertchae committed Aug 4, 2023
1 parent b893f0f commit 072b6ae
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/flarum.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, lib, pkgs, ngipkgs, utils, ... }:
{ config, lib, pkgs, self, utils, ... }:

let
inherit (lib) concatStrings literalExample mapAttrs mkDefault mkEnableOption mkIf mkOption types;
Expand Down Expand Up @@ -155,7 +155,7 @@ in
extraConfig =
''
index index.php;
include ${ngipkgs.flarum.src}/.nginx.conf;
include ${self.packages.x86_64-linux.flarum}/.nginx.conf;
'';
};
};
Expand Down Expand Up @@ -192,9 +192,9 @@ in
mkdir -p ${cfg.stateDir}/{extensions,public/assets/avatars}
mkdir -p ${cfg.stateDir}/storage/{formatter,sessions,views}
cd ${cfg.stateDir}
cp -f ${ngipkgs.flarum}/{extend.php,site.php,flarum} .
ln -sf ${ngipkgs.flarum}/vendor .
ln -sf ${ngipkgs.flarum}/public/index.php public/
cp -f ${self.packages.x86_64-linux.flarum}/{extend.php,site.php,flarum} .
ln -sf ${self.packages.x86_64-linux.flarum}/vendor .
ln -sf ${self.packages.x86_64-linux.flarum}/public/index.php public/
chmod a+x . public
'' + lib.optionalString (cfg.createDatabaseLocally && cfg.database.driver == "mysql") ''
cp ${flarumInstallConfig} .
Expand Down

0 comments on commit 072b6ae

Please sign in to comment.