Correct ServiceConfig?
This commit is contained in:
@@ -14,6 +14,18 @@
|
|||||||
py = pkgs.python3.withPackages (p: with p; [
|
py = pkgs.python3.withPackages (p: with p; [
|
||||||
handy_py
|
handy_py
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
handybot = pkgs.writeShellApplication {
|
||||||
|
name = "Handy Helper Discord Bot";
|
||||||
|
|
||||||
|
runtimeInputs = with pkgs; [
|
||||||
|
py
|
||||||
|
];
|
||||||
|
|
||||||
|
text = ''
|
||||||
|
python -m handyhelper
|
||||||
|
'';
|
||||||
|
};
|
||||||
in {
|
in {
|
||||||
systemd.services.handyhelper = {
|
systemd.services.handyhelper = {
|
||||||
wantedBy = ["networking-online.target"];
|
wantedBy = ["networking-online.target"];
|
||||||
@@ -21,9 +33,9 @@
|
|||||||
path = [
|
path = [
|
||||||
py
|
py
|
||||||
];
|
];
|
||||||
script = ''
|
serviceConfig = {
|
||||||
python3 -m handyhelper
|
StartExec = handybot;
|
||||||
'';
|
};
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user