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