WIP: Site max
This commit is contained in:
parent
95bb9b0c4b
commit
3254a57c8f
@ -41,6 +41,7 @@
|
|||||||
(import ./overlays/lidarr.nix)
|
(import ./overlays/lidarr.nix)
|
||||||
(import ./overlays/organizr.nix)
|
(import ./overlays/organizr.nix)
|
||||||
(import ./overlays/sudo.nix)
|
(import ./overlays/sudo.nix)
|
||||||
|
(import ./overlays/site-max.nix)
|
||||||
];
|
];
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
neovim
|
neovim
|
||||||
|
5
overlays/site-max.nix
Normal file
5
overlays/site-max.nix
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
self: super:
|
||||||
|
|
||||||
|
{
|
||||||
|
site-max = super.callPackage ../pkgs/site-max { };
|
||||||
|
}
|
30
pkgs/site-max/default.nix
Normal file
30
pkgs/site-max/default.nix
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
{ lib, stdenv, fetchFromGitHub, sassc }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name= "site-max-${version}";
|
||||||
|
version = "1.0.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "nyanloutre";
|
||||||
|
repo = "site-max";
|
||||||
|
rev = "d867dc88282802fda5616c0320456cab38e57d88";
|
||||||
|
sha256 = "05q1jn0ak04kpcih51nxsy4phf15vg2xlsvp26lycncfygkq2vy0";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
${sassc}/bin/sassc -m auto -t compressed scss/creative.scss css/creative.css
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/
|
||||||
|
cp -R . $out/
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Site de présentation de Max Spiegel";
|
||||||
|
homepage = https://maxspiegel.fr/;
|
||||||
|
maintainers = with stdenv.lib.maintainers; [ nyanloutre ];
|
||||||
|
license = stdenv.lib.licenses.cc-by-nc-sa-40;
|
||||||
|
platforms = stdenv.lib.platforms.all;
|
||||||
|
};
|
||||||
|
}
|
@ -8,6 +8,7 @@ let
|
|||||||
riot_port = 52345;
|
riot_port = 52345;
|
||||||
organizr_port = 52346;
|
organizr_port = 52346;
|
||||||
pgmanage_port = 52347;
|
pgmanage_port = 52347;
|
||||||
|
max_port = 52348;
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -34,6 +35,7 @@ in
|
|||||||
organizr = { ip = "127.0.0.1"; port = organizr_port; auth = true; };
|
organizr = { ip = "127.0.0.1"; port = organizr_port; auth = true; };
|
||||||
calibre = { ip = "127.0.0.1"; port = 8080; auth = false; };
|
calibre = { ip = "127.0.0.1"; port = 8080; auth = false; };
|
||||||
pgmanage = { ip = "127.0.0.1"; port = pgmanage_port; auth = true; };
|
pgmanage = { ip = "127.0.0.1"; port = pgmanage_port; auth = true; };
|
||||||
|
max = { ip = "127.0.0.1"; port = max_port; auth = false; };
|
||||||
};
|
};
|
||||||
|
|
||||||
services.mailserver.enable = true;
|
services.mailserver.enable = true;
|
||||||
@ -131,6 +133,10 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
"max" = {
|
||||||
|
listen = [ { addr = "127.0.0.1"; port = max_port; } ];
|
||||||
|
locations = { "/" = { root = pkgs.site-max; }; };
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.phpfpm.poolConfigs.mypool = ''
|
services.phpfpm.poolConfigs.mypool = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user