1
0
Fork 0
dotfiles/system/nixos/fedifetcher.nix
Daniel Kempkens 650be0e27e
All checks were successful
Update Flake / update-flake (push) Successful in 3m20s
Build / build-arm64-linux (push) Successful in 12m23s
Build / build-amd64-linux (push) Successful in 28s
chore: use lib.getExe in more places
2023-12-14 00:29:09 +01:00

19 lines
606 B
Nix

{ pkgs, config, lib, ... }:
{
systemd.services.fedifetcher = {
description = "FediFetcher";
wants = [ "mastodon-web.service" "mastodon-wait-for-available.service" ];
after = [ "mastodon-web.service" "mastodon-wait-for-available.service" ];
# wantedBy = [ "multi-user.target" ];
startAt = "*:0/25";
serviceConfig = {
Type = "oneshot";
DynamicUser = true;
StateDirectory = "fedifetcher";
LoadCredential = "config.json:${config.age.secrets.fedifetcher-config.path}";
ExecStart = "${lib.getExe pkgs.fedifetcher} --config=%d/config.json";
};
};
}