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