fix(discord): now on the new system
This commit is contained in:
parent
fe979fbfe1
commit
def9e16c65
3 changed files with 36 additions and 3 deletions
|
|
@ -8,13 +8,24 @@ in
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
go
|
go
|
||||||
];
|
];
|
||||||
|
users = {
|
||||||
|
groups.dsc_master = {
|
||||||
|
name = "dsc_master";
|
||||||
|
};
|
||||||
|
users.dsc_master = {
|
||||||
|
description = "Utilisateur pour le bot master";
|
||||||
|
group = "dsc_master";
|
||||||
|
home = "/opt/master";
|
||||||
|
isSystemUser = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
systemd.services.yagpdb = {
|
systemd.services.yagpdb = {
|
||||||
description = "Enium discord master bot";
|
description = "Enium discord master bot";
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
User = "nobody";
|
User = "dsc_master";
|
||||||
WorkingDirectory = "/opt/yagpdb/cmd/yagpdb";
|
WorkingDirectory = "/opt/yagpdb/cmd/yagpdb";
|
||||||
ExecStart = "/opt/yagpdb/cmd/yagpdb/yagpdb -all -pa";
|
ExecStart = "/opt/yagpdb/cmd/yagpdb/yagpdb -all -pa";
|
||||||
EnvironmentFile = "/opt/yagpdb/cmd/yagpdb/sampleenvfile";
|
EnvironmentFile = "/opt/yagpdb/cmd/yagpdb/sampleenvfile";
|
||||||
|
|
|
||||||
|
|
@ -8,13 +8,24 @@ in
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
nodejs
|
nodejs
|
||||||
];
|
];
|
||||||
|
users = {
|
||||||
|
groups.dsc_tempvoc = {
|
||||||
|
name = "dsc_tempvoc";
|
||||||
|
};
|
||||||
|
users.dsc_tempvoc = {
|
||||||
|
description = "Utilisateur pour le bot tempvoc";
|
||||||
|
group = "dsc_tempvoc";
|
||||||
|
home = "/opt/tempvoc";
|
||||||
|
isSystemUser = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
systemd.services.tempvoc = {
|
systemd.services.tempvoc = {
|
||||||
description = "Enium discord bot for tempvoc";
|
description = "Enium discord bot for tempvoc";
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
User = "nobody";
|
User = "dsc_tempvoc";
|
||||||
WorkingDirectory = "/opt/tempvoc";
|
WorkingDirectory = "/opt/tempvoc";
|
||||||
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";
|
||||||
|
|
|
||||||
|
|
@ -8,13 +8,24 @@ in
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
nodejs
|
nodejs
|
||||||
];
|
];
|
||||||
|
users = {
|
||||||
|
groups.dsc_ticket = {
|
||||||
|
name = "dsc_ticket";
|
||||||
|
};
|
||||||
|
users.dsc_ticket = {
|
||||||
|
description = "Utilisateur pour le bot ticket";
|
||||||
|
group = "dsc_ticket";
|
||||||
|
home = "/opt/ticket";
|
||||||
|
isSystemUser = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
systemd.services.ticket = {
|
systemd.services.ticket = {
|
||||||
description = "Service for ticket";
|
description = "Service for ticket";
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
User = "nobody";
|
User = "dsc_ticket";
|
||||||
WorkingDirectory = "/opt/ticket";
|
WorkingDirectory = "/opt/ticket";
|
||||||
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