feat(bde): Changing name for securities issues and arborecense

This commit is contained in:
Raphael 2025-05-19 01:00:51 +02:00
parent 65774cdf29
commit fe979fbfe1

View file

@ -5,6 +5,18 @@ let
in in
{ {
config = lib.mkIf cfg { config = lib.mkIf cfg {
users = {
groups.dsc_bde = {
name = "dsc_bde";
};
users.dsc_bde = {
description = "Utilisateur pour le bot BDE";
group = "dsc_bde";
home = "/opt/bde";
isSystemUser = true;
};
};
systemd.services.bot_bde = { systemd.services.bot_bde = {
description = "BDE discord bot public"; description = "BDE discord bot public";
after = [ after = [
@ -15,10 +27,10 @@ in
]; ];
serviceConfig = { serviceConfig = {
Type = "simple"; Type = "simple";
User = "nobody"; User = "dsc_bde";
WorkingDirectory = "/opt/Bot_Auth"; WorkingDirectory = "/opt/Bde";
ExecStart = "/opt/Bot_Auth/.venv/bin/python /opt/Bot_Auth/bot.py"; ExecStart = "/opt/Bde/.venv/bin/python /opt/Bde/bot.py";
EnvironmentFile = "/opt/Bot_Auth/.env"; EnvironmentFile = "/opt/Bde/.env";
Restart = "on-failure"; Restart = "on-failure";
RestartSec = 5; RestartSec = 5;
}; };