Move particles to its own file

This commit is contained in:
Charlotte Van Petegem 2022-02-13 13:23:13 +01:00
parent ab77437953
commit e85403d2b9
No known key found for this signature in database
GPG key ID: 019E764B7184435A
4 changed files with 36 additions and 23 deletions

View file

@ -0,0 +1,24 @@
{ config, lib, pkgs, ... }:
let
particles = pkgs.fetchgit {
url = "https://git.zeus.gent/midgard/particles.git";
sha256 = "0weSBjhSS0XuII5yZXWYUJpPOhetFJKbcsS8WWpodhs=";
};
in
{
options.chvp.games.particles.server = lib.mkOption {
default = false;
example = true;
};
config = lib.mkIf config.chvp.games.particles.server {
chvp.services.nginx.hosts = [{
fqdn = "particles.vanpetegem.me";
options = {
root = "${particles}/public";
locations."/".index = "index.html";
};
}];
};
}