style(nixfmt): formatting using nixfmt cli tools
This commit is contained in:
parent
b804520f4c
commit
fbe803b928
46 changed files with 2133 additions and 1700 deletions
|
|
@ -1,37 +1,42 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.service.bot_discord.tempvoc;
|
||||
cfg = config.service.bot_discord.tempvoc;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf cfg {
|
||||
environment.systemPackages = with pkgs; [
|
||||
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 = {
|
||||
description = "Enium discord bot for tempvoc";
|
||||
after = [ "network.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
User = "dsc_tempvoc";
|
||||
WorkingDirectory = "/opt/tempvoc";
|
||||
ExecStart = "${pkgs.nodejs}/bin/npm start";
|
||||
Environment = "PATH=${pkgs.coreutils}/bin:${pkgs.bash}/bin:${pkgs.nodejs}/bin";
|
||||
Restart = "on-failure";
|
||||
RestartSec = 5;
|
||||
};
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg {
|
||||
environment.systemPackages = with pkgs; [
|
||||
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 = {
|
||||
description = "Enium discord bot for tempvoc";
|
||||
after = [ "network.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
User = "dsc_tempvoc";
|
||||
WorkingDirectory = "/opt/tempvoc";
|
||||
ExecStart = "${pkgs.nodejs}/bin/npm start";
|
||||
Environment = "PATH=${pkgs.coreutils}/bin:${pkgs.bash}/bin:${pkgs.nodejs}/bin";
|
||||
Restart = "on-failure";
|
||||
RestartSec = 5;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue