Hello, I try to run a simple python web server on boot, but I keep having a 127 error code. This is my service :
systemd.user.services.web = {
enable = true;
wantedBy = [ "multi-user.target" ];
description = "Web server";
path = with pkgs; [ python3 php ];
script = ''
echo "${pkgs.python3}/bin/python3" > /home/env-admin/log;
${pkgs.python3}/bin/python3 /home/env-admin/web/main.py;
'';
};
I saw stuff with flakes but it seems too complex for nothing. Is there something missing ?
The file /home/env-admin/log is never created