reenable fedifetcher
This commit is contained in:
parent
993d0d3e8e
commit
c869eb3ef8
|
@ -164,28 +164,28 @@ in {
|
||||||
groups.fedifetcher = { };
|
groups.fedifetcher = { };
|
||||||
};
|
};
|
||||||
|
|
||||||
# systemd = let
|
systemd = let
|
||||||
# configPath = "/srv/secrets/fedifetcher.json";
|
configPath = "/srv/secrets/fedifetcher.json";
|
||||||
# state = "/var/lib/fedifetcher";
|
state = "/var/lib/fedifetcher";
|
||||||
# in {
|
in {
|
||||||
# timers.fedifetcher = {
|
timers.fedifetcher = {
|
||||||
# wantedBy = [ "timers.target" ];
|
wantedBy = [ "timers.target" ];
|
||||||
# timerConfig = {
|
timerConfig = {
|
||||||
# OnUnitActiveSec = "1m";
|
OnUnitActiveSec = "1m";
|
||||||
# Unit = "fedifetcher.service";
|
Unit = "fedifetcher.service";
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
# services.fedifetcher = {
|
services.fedifetcher = {
|
||||||
# unitConfig = { ConditionPathExists = configPath; };
|
unitConfig = { ConditionPathExists = configPath; };
|
||||||
# serviceConfig = {
|
serviceConfig = {
|
||||||
# WorkingDirectory = state;
|
WorkingDirectory = state;
|
||||||
# Type = "oneshot";
|
Type = "oneshot";
|
||||||
# ExecStart = "${pkgs.fedifetcher}/bin/fedifetcher"
|
ExecStart = "${pkgs.fedifetcher}/bin/fedifetcher"
|
||||||
# + " --config ${configPath}" + " --state-dir ${state}";
|
+ " --config ${configPath}" + " --state-dir ${state}";
|
||||||
# User = "fedifetcher";
|
User = "fedifetcher";
|
||||||
# Group = "fedifetcher";
|
Group = "fedifetcher";
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue