Host midgard's particles
This commit is contained in:
parent
ba14e195e1
commit
7206212472
1 changed files with 22 additions and 7 deletions
|
@ -1,5 +1,11 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
particles = pkgs.fetchgit {
|
||||
url = "https://git.zeus.gent/midgard/particles.git";
|
||||
sha256 = "0weSBjhSS0XuII5yZXWYUJpPOhetFJKbcsS8WWpodhs=";
|
||||
};
|
||||
in
|
||||
{
|
||||
options.chvp.games.tetris.server = lib.mkOption {
|
||||
default = false;
|
||||
|
@ -7,12 +13,21 @@
|
|||
};
|
||||
|
||||
config = lib.mkIf config.chvp.games.tetris.server {
|
||||
chvp.services.nginx.hosts = [{
|
||||
fqdn = "tetris.vanpetegem.me";
|
||||
options = {
|
||||
root = "${pkgs.tetris}";
|
||||
locations."/".index = "index.html";
|
||||
};
|
||||
}];
|
||||
chvp.services.nginx.hosts = [
|
||||
{
|
||||
fqdn = "tetris.vanpetegem.me";
|
||||
options = {
|
||||
root = "${pkgs.tetris}";
|
||||
locations."/".index = "index.html";
|
||||
};
|
||||
}
|
||||
{
|
||||
fqdn = "particles.vanpetegem.me";
|
||||
options = {
|
||||
root = "${particles}/public";
|
||||
locations."/".index = "index.html";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue