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
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue