ark/hosts/wolumonde/modules/limbusart.nix

42 lines
1.0 KiB
Nix
Raw Normal View History

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 = {};
services.nginx.virtualHosts."limbus.company" = {
useACMEHost = "limbus.company";
forceSSL = true;
locations."/".proxyPass = "http://localhost:3000";
};
}