valkyrie: fix name

This commit is contained in:
Mateusz Słodkowicz 2024-04-06 03:14:41 +02:00
parent b28248d90f
commit 7a2306bbd8
Signed by: materus
GPG Key ID: 28D140BCA60B4FD1
3 changed files with 7 additions and 7 deletions

View File

@ -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;
}

View File

@ -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";