forked from nyanloutre/nixos-config
Service Organizr
This commit is contained in:
parent
00dff10334
commit
2a03714100
26
organizr.nix
Normal file
26
organizr.nix
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
with import <nixpkgs> {};
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "organizr-${version}";
|
||||||
|
version = "1.75";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "causefx";
|
||||||
|
repo = "Organizr";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "13h6cgqq3gyg5d3ikj7k85igpg6al7y9xdsxammkr8y5dzfbkm36";
|
||||||
|
};
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/
|
||||||
|
cp -R . $out/
|
||||||
|
ln -s /var/lib/organizr/config.php $out/config/config.php
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Organizr dashboard";
|
||||||
|
homepage = https://github.com/causefx/Organizr;
|
||||||
|
license = stdenv.lib.licenses.gpl3;
|
||||||
|
platforms = stdenv.lib.platforms.all;
|
||||||
|
};
|
||||||
|
}
|
@ -121,10 +121,7 @@ in
|
|||||||
"organizr" = {
|
"organizr" = {
|
||||||
listen = [ { addr = "127.0.0.1"; port = organizr_port; } ];
|
listen = [ { addr = "127.0.0.1"; port = organizr_port; } ];
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
root = (builtins.fetchTarball {
|
root = (import ./organizr.nix);
|
||||||
url = "https://github.com/causefx/Organizr/archive/1.75.tar.gz";
|
|
||||||
sha256 = "13h6cgqq3gyg5d3ikj7k85igpg6al7y9xdsxammkr8y5dzfbkm36";
|
|
||||||
});
|
|
||||||
index = "index.php";
|
index = "index.php";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
location ~* \.php$ {
|
location ~* \.php$ {
|
||||||
|
Loading…
Reference in New Issue
Block a user