From 8b42cfe092ec60255e1659cda82fdd4d6f56b001 Mon Sep 17 00:00:00 2001 From: NullBite Date: Sat, 4 Jan 2025 01:31:39 -0500 Subject: [PATCH] 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: https://github.com/NixOS/nixpkgs/blob/8cb0cd700b47bb7c6e61fd1946d9dee8d6ad02d8/nixos/lib/systemd-unit-options.nix#L333 --- hosts/rpi4/media-sync.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hosts/rpi4/media-sync.nix b/hosts/rpi4/media-sync.nix index 7930bcb..61999f8 100644 --- a/hosts/rpi4/media-sync.nix +++ b/hosts/rpi4/media-sync.nix @@ -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";