nixfiles/hosts/rpi4/media-sync.nix
NullBite 8b42cfe092
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)
2025-01-04 01:31:39 -05:00

44 lines
1.1 KiB
Nix

{ config, lib, pkgs, ... }:
let
in {
config = {
nixfiles.programs.syncthing.enable = true;
systemd.timers.gallery-dl = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnBootSec = "5m";
OnUnitActiveSec = "13";
RandomizedDelaySec = "4m";
};
};
systemd.services.gallery-dl = {
path = with pkgs; [ bash coreutils findutils gallery-dl ];
serviceConfig = {
# none of your fucking business
# TODO move this into an agenix secret probably
ExecStart = "/srv/gallery-dl.sh";
Type = "oneshot";
User = "nullbite";
};
};
systemd.timers.gallery-dl-dedup = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnCalendar = "03:00";
RandomizedDelaySec = "3h";
};
};
systemd.services.gallery-dl-dedup = {
path = with pkgs ; [ bash coreutils rmlint ];
serviceConfig = {
# likewise
ExecStart = "/srv/gallery-dl-dedup.sh";
Type = "oneshot";
User = "nullbite";
};
};
};
}