mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
format
This commit is contained in:
@@ -10,22 +10,24 @@ in
|
||||
home = scrabbleDirectory;
|
||||
createHome = true;
|
||||
};
|
||||
users.extraGroups.scrabble = {};
|
||||
users.extraGroups.scrabble = { };
|
||||
|
||||
systemd.services.scrabble = {
|
||||
wantedBy = ["multi-user.target"];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
enable = true;
|
||||
preStart = "npm install @cdot/xanado";
|
||||
path = [ pkgs.nodejs ];
|
||||
script = ''
|
||||
${scrabbleDirectory}/node_modules/.bin/xanado --config ${(pkgs.formats.json {}).generate "config.json" {
|
||||
port = port;
|
||||
host = "localhost";
|
||||
game_defaults = {
|
||||
edition = "Deutsch_Scrabble";
|
||||
dictionary = "German";
|
||||
};
|
||||
}}
|
||||
${scrabbleDirectory}/node_modules/.bin/xanado --config ${
|
||||
(pkgs.formats.json { }).generate "config.json" {
|
||||
port = port;
|
||||
host = "localhost";
|
||||
game_defaults = {
|
||||
edition = "Deutsch_Scrabble";
|
||||
dictionary = "German";
|
||||
};
|
||||
}
|
||||
}
|
||||
'';
|
||||
serviceConfig = {
|
||||
User = "scrabble";
|
||||
@@ -34,7 +36,6 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
services.nginx.virtualHosts."scrabble.kmein.de" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
@@ -43,10 +44,10 @@ in
|
||||
|
||||
systemd.services.scrabble-fix = {
|
||||
startAt = "hourly";
|
||||
wantedBy = ["multi-user.target"];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
enable = false;
|
||||
script = ''
|
||||
${pkgs.gnused}/bin/sed -i s/encadefrit/en/ sessions/*.json passwd.json"
|
||||
${pkgs.gnused}/bin/sed -i s/encadefrit/en/ sessions/*.json passwd.json"
|
||||
'';
|
||||
serviceConfig = {
|
||||
User = "scrabble";
|
||||
|
||||
Reference in New Issue
Block a user