2023-07-25 13:54:23 +03:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
pkg = inputs.limbusart.packages.${pkgs.system}.default;
|
|
|
|
in {
|
|
|
|
systemd.services.limbusart = {
|
|
|
|
description = "limbusart";
|
|
|
|
wantedBy = ["multi-user.target"];
|
|
|
|
after = ["network.target"];
|
|
|
|
serviceConfig = lib.mkMerge [
|
|
|
|
{
|
|
|
|
User = "limbusart";
|
|
|
|
ExecStart = "${pkg}/bin/limbusart";
|
|
|
|
Restart = "on-failure";
|
|
|
|
RestartSec = 5;
|
|
|
|
WorkingDirectory = "/var/lib/limbusart";
|
|
|
|
EnvironmentFile = pkgs.writeText "limbusart.conf" ''
|
|
|
|
ARTS_PATH="arts.txt"
|
|
|
|
SITE_TITLE="random pm art"
|
|
|
|
EMBED_TITLE="random pm art here!!"
|
|
|
|
EMBED_DESC="click NOW to see random pm art"
|
|
|
|
EMBED_COLOR="#bd0000"
|
|
|
|
'';
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
users.users.limbusart = {
|
|
|
|
isSystemUser = true;
|
|
|
|
group = "limbusart";
|
|
|
|
};
|
|
|
|
users.groups.limbusart = {};
|
|
|
|
|
2024-09-26 17:19:15 +03:00
|
|
|
services.nginx.virtualHosts."limbus.gaze.systems" = {
|
|
|
|
useACMEHost = "gaze.systems";
|
2023-07-25 13:54:23 +03:00
|
|
|
forceSSL = true;
|
|
|
|
locations."/".proxyPass = "http://localhost:3000";
|
|
|
|
};
|
|
|
|
}
|