feat(music): update on new system and disabled now
This commit is contained in:
parent
ba8396e72b
commit
65774cdf29
2 changed files with 13 additions and 2 deletions
|
|
@ -24,7 +24,7 @@
|
||||||
master = true;
|
master = true;
|
||||||
bde = true;
|
bde = true;
|
||||||
ada = true;
|
ada = true;
|
||||||
music = true;
|
music = false;
|
||||||
tempvoc = true;
|
tempvoc = true;
|
||||||
ticket = true;
|
ticket = true;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -8,13 +8,24 @@ in
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
nodejs
|
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 = {
|
systemd.services.music = {
|
||||||
description = "Enium discord bot for music";
|
description = "Enium discord bot for music";
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
User = "nobody";
|
User = "dsc_music";
|
||||||
WorkingDirectory = "/opt/music";
|
WorkingDirectory = "/opt/music";
|
||||||
ExecStart = "${pkgs.nodejs}/bin/npm start";
|
ExecStart = "${pkgs.nodejs}/bin/npm start";
|
||||||
Environment = "PATH=${pkgs.coreutils}/bin:${pkgs.bash}/bin:${pkgs.nodejs}/bin";
|
Environment = "PATH=${pkgs.coreutils}/bin:${pkgs.bash}/bin:${pkgs.nodejs}/bin";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue