feat(music): update on new system and disabled now

This commit is contained in:
Raphael 2025-05-19 01:00:14 +02:00
parent ba8396e72b
commit 65774cdf29
2 changed files with 13 additions and 2 deletions

View file

@ -24,7 +24,7 @@
master = true;
bde = true;
ada = true;
music = true;
music = false;
tempvoc = true;
ticket = true;
};

View file

@ -8,13 +8,24 @@ in
environment.systemPackages = with pkgs; [
nodejs
];
users = {
groups.dsc_music = {
name = "dsc_music";
};
users.dsc_music = {
description = "Utilisateur pour le bot music";
group = "dsc_music";
home = "/opt/music";
isSystemUser = true;
};
};
systemd.services.music = {
description = "Enium discord bot for music";
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
Type = "simple";
User = "nobody";
User = "dsc_music";
WorkingDirectory = "/opt/music";
ExecStart = "${pkgs.nodejs}/bin/npm start";
Environment = "PATH=${pkgs.coreutils}/bin:${pkgs.bash}/bin:${pkgs.nodejs}/bin";