Organizr en overlay

This commit is contained in:
nyanloutre 2018-05-04 16:35:00 +02:00
parent 2787e12243
commit 489f166e36
4 changed files with 8 additions and 2 deletions

View File

@ -39,6 +39,7 @@
nixpkgs.overlays = [ nixpkgs.overlays = [
(import ./overlays/riot-web.nix) (import ./overlays/riot-web.nix)
(import ./overlays/lidarr.nix) (import ./overlays/lidarr.nix)
(import ./overlays/organizr.nix)
]; ];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
neovim neovim

5
overlays/organizr.nix Normal file
View File

@ -0,0 +1,5 @@
self: super:
{
organizr = super.callPackage ../pkgs/organizr { };
}

View File

@ -1,4 +1,4 @@
with import <nixpkgs> {}; { stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "organizr-${version}"; name = "organizr-${version}";

View File

@ -118,7 +118,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 = (import ./organizr.nix); root = pkgs.organizr;
index = "index.php"; index = "index.php";
extraConfig = '' extraConfig = ''
location ~* \.php$ { location ~* \.php$ {