rpi4: don't set PATH using shell exports

what the actual fuck was i cooking
This commit is contained in:
NullBite 2025-01-04 01:16:41 -05:00
parent 8187c8a77f
commit d9dad28acf
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A

View File

@ -14,16 +14,11 @@ in {
}; };
}; };
systemd.services.gallery-dl = { systemd.services.gallery-dl = {
script = '' environment.PATH = with pkgs; makeBinpath [ bash coreutils findutils gallery-dl ];
PATH=${with pkgs; lib.escapeShellArg (lib.makeBinPath [ bash coreutils findutils gallery-dl ])} serviceConfig = {
export PATH
# none of your fucking business # none of your fucking business
# TODO move this into an agenix secret probably # TODO move this into an agenix secret probably
exec /srv/gallery-dl.sh ExecStart = "/srv/gallery-dl.sh";
'';
serviceConfig = {
Type = "oneshot"; Type = "oneshot";
User = "nullbite"; User = "nullbite";
}; };
@ -37,13 +32,10 @@ in {
}; };
}; };
systemd.services.gallery-dl-dedup = { systemd.services.gallery-dl-dedup = {
script = '' environment.PATH = with pkgs; makeBinpath [ bash coreutils rmlint ];
PATH=${with pkgs; lib.escapeShellArg (lib.makeBinPath [ coreutils rmlint ])}
export PATH
exec /srv/gallery-dl-dedup.sh
'';
serviceConfig = { serviceConfig = {
# likewise
ExecStart = "/srv/gallery-dl-dedup.sh";
Type = "oneshot"; Type = "oneshot";
User = "nullbite"; User = "nullbite";
}; };