mirror of
https://github.com/thiloho/nixos-config.git
synced 2025-11-22 11:31:36 +01:00
Enhance systemd service for discord bot
This commit is contained in:
12
flake.lock
generated
12
flake.lock
generated
@@ -7,11 +7,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1693750073,
|
||||
"narHash": "sha256-TSivhiEcVXVv8B5qr3ulNWLs9lBqV7Pg8Vb/5YgIgWQ=",
|
||||
"lastModified": 1695474974,
|
||||
"narHash": "sha256-qdHgNqx/IrRIwOvPq2hS5YRgkGsOitvJg5ApGpsAVC8=",
|
||||
"owner": "thiloho",
|
||||
"repo": "aurora",
|
||||
"rev": "5ec13fc044e628c354f7d9aa7c5842f68666440f",
|
||||
"rev": "94225228778bc25fe8ee9a65831cb4b7845b482c",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -27,11 +27,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1694376907,
|
||||
"narHash": "sha256-z3FUE3Kb/WhYCHslyFBDyuQpnYt1gRz7g8s60ztWqiw=",
|
||||
"lastModified": 1695497123,
|
||||
"narHash": "sha256-i9pQ86ZFgLBVukuR76Nz5LyoVe2j4xOzjhv9B4B/3Ew=",
|
||||
"owner": "thiloho",
|
||||
"repo": "discord-bot",
|
||||
"rev": "8278bbf024d5a6c20c92437bdf2b46b14c2ea856",
|
||||
"rev": "f4f6e5c9180fff6cd41715cd6c2192f4228ea91d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
@@ -84,7 +84,11 @@
|
||||
wantedBy = ["multi-user.target"];
|
||||
after = ["network-online.target"];
|
||||
serviceConfig = {
|
||||
ExecStartPre = "${pkgs.nodejs_20}/bin/node dbInit.js";
|
||||
Type = "simple";
|
||||
ExecStartPre = [
|
||||
"${pkgs.nodejs_20}/bin/node dbInit.js"
|
||||
"${pkgs.nodejs_20}/bin/node deploy-commands.js --token=%d/bot.token --clientId=1142441791459704912"
|
||||
];
|
||||
ExecStart = "${pkgs.nodejs_20}/bin/node index.js --token=%d/bot.token";
|
||||
LoadCredential = "bot.token:/var/run/bot-token.txt";
|
||||
WorkingDirectory = inputs.denbot.packages.${pkgs.system}.default;
|
||||
|
||||
Reference in New Issue
Block a user