Correct ServiceConfig?

This commit is contained in:
2023-03-15 22:36:37 -04:00
parent 321cb36793
commit b35c267d2f

View File

@@ -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;
};
};
})
];