2024-06-22 12:40:50 -04:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
systemd = {
|
|
|
|
services."plex_permission" = {
|
|
|
|
description = "maintains /zfs/storage/plex permissions";
|
|
|
|
serviceConfig = {
|
|
|
|
Type = "oneshot";
|
2024-07-03 17:25:03 -04:00
|
|
|
ExecStart = "${pkgs.bash}/bin/bash ${./scripts/plex_permission.sh}";
|
2024-06-22 12:40:50 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
timers."plex_permission" = {
|
|
|
|
wantedBy = [ "timers.target" ];
|
|
|
|
timerConfig = {
|
|
|
|
OnBootSec = "1h";
|
|
|
|
OnCalendar = "daily 03:00";
|
|
|
|
Unit = "plex_permission.service";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|