valkyrie: fix name
This commit is contained in:
parent
b28248d90f
commit
7a2306bbd8
Binary file not shown.
|
@ -5,13 +5,13 @@
|
|||
./pleroma.nix
|
||||
./pihole.nix
|
||||
./dcbot.nix
|
||||
./saveyoursoul.nix
|
||||
./secureyoursoul.nix
|
||||
];
|
||||
services.adguardhome.enable = true;
|
||||
|
||||
valkyrieService.pihole.enable = false;
|
||||
valkyrieService.pleroma.enable = true;
|
||||
valkyrieService.dcbot.enable = true;
|
||||
valkyrieService.saveyoursoul.enable = true;
|
||||
valkyrieService.secureyoursoul.enable = true;
|
||||
|
||||
}
|
||||
|
|
|
@ -1,25 +1,25 @@
|
|||
{ config, pkgs, lib, materusArg, ... }:
|
||||
{
|
||||
options.valkyrieService.saveyoursoul.enable = materusArg.pkgs.lib.mkBoolOpt false "Enable saveyoursoul, web archive";
|
||||
options.valkyrieService.secureyoursoul.enable = materusArg.pkgs.lib.mkBoolOpt false "Enable secureyoursoul, web archive";
|
||||
|
||||
|
||||
|
||||
|
||||
config =
|
||||
let
|
||||
cfg = config.valkyrieService.saveyoursoul;
|
||||
cfg = config.valkyrieService.secureyoursoul;
|
||||
in
|
||||
lib.mkIf cfg.enable {
|
||||
systemd.timers.saveyoursoul = {
|
||||
systemd.timers.secureyoursoul = {
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = {
|
||||
OnCalendar = "*-*-1,7,14,21 3:00:00";
|
||||
Persistent = true;
|
||||
Unit = "saveyoursoul.service";
|
||||
Unit = "secureyoursoul.service";
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services.saveyoursoul = {
|
||||
systemd.services.secureyoursoul = {
|
||||
description = "Make curl requests to archive related things";
|
||||
path = [ pkgs.coreutils pkgs.util-linux pkgs.curl ];
|
||||
serviceConfig.Type = "oneshot";
|
Loading…
Reference in New Issue