Files
.github
.vscode
docs
hydra
keys
lib
modules
systems
artemision
bob
jeeves
docker
scripts
configuration.nix
default.nix
hardware.nix
programs.nix
secrets.yaml
services.nix
snapshot_config.toml
vars.nix
jeeves-jr
palatine-hill
rhapsody-in-green
users
utils
.envrc
.gitconfig
.gitignore
.sops.yaml
checks.nix
flake.lock
flake.nix
shell.nix
sops-mergetool.sh
statix.toml
treefmt.toml
nix-dotfiles/systems/jeeves/services.nix
2024-07-05 17:05:04 +00:00

21 lines
492 B
Nix

{ pkgs, ... }:
{
systemd = {
services."plex_permission" = {
description = "maintains /zfs/storage/plex permissions";
serviceConfig = {
Type = "oneshot";
ExecStart = "${pkgs.bash}/bin/bash ${./scripts/plex_permission.sh}";
};
};
timers."plex_permission" = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnBootSec = "1h";
OnCalendar = "daily 03:00";
Unit = "plex_permission.service";
};
};
};
}