rpi4: set the path properly

i am going insane

in all fairness this fuckup isn't my fault the documentation literally
used setting PATH as an example:

8cb0cd700b/nixos/lib/systemd-unit-options.nix (L333)
This commit is contained in:
NullBite 2025-01-04 01:31:39 -05:00
parent cdd99c9b5e
commit 8b42cfe092
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A

View File

@ -4,7 +4,6 @@ in {
config = {
nixfiles.programs.syncthing.enable = true;
systemd.timers.gallery-dl = {
wantedBy = [ "timers.target" ];
timerConfig = {
@ -14,7 +13,7 @@ in {
};
};
systemd.services.gallery-dl = {
environment.PATH = with pkgs; lib.makeBinPath [ bash coreutils findutils gallery-dl ];
path = with pkgs; [ bash coreutils findutils gallery-dl ];
serviceConfig = {
# none of your fucking business
# TODO move this into an agenix secret probably
@ -32,7 +31,7 @@ in {
};
};
systemd.services.gallery-dl-dedup = {
environment.PATH = with pkgs; lib.makeBinPath [ bash coreutils rmlint ];
path = with pkgs ; [ bash coreutils rmlint ];
serviceConfig = {
# likewise
ExecStart = "/srv/gallery-dl-dedup.sh";