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 ./pleroma.nix
./pihole.nix ./pihole.nix
./dcbot.nix ./dcbot.nix
./saveyoursoul.nix ./secureyoursoul.nix
]; ];
services.adguardhome.enable = true; services.adguardhome.enable = true;
valkyrieService.pihole.enable = false; valkyrieService.pihole.enable = false;
valkyrieService.pleroma.enable = true; valkyrieService.pleroma.enable = true;
valkyrieService.dcbot.enable = true; valkyrieService.dcbot.enable = true;
valkyrieService.saveyoursoul.enable = true; valkyrieService.secureyoursoul.enable = true;
} }

View File

@ -1,25 +1,25 @@
{ config, pkgs, lib, materusArg, ... }: { 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 = config =
let let
cfg = config.valkyrieService.saveyoursoul; cfg = config.valkyrieService.secureyoursoul;
in in
lib.mkIf cfg.enable { lib.mkIf cfg.enable {
systemd.timers.saveyoursoul = { systemd.timers.secureyoursoul = {
wantedBy = [ "timers.target" ]; wantedBy = [ "timers.target" ];
timerConfig = { timerConfig = {
OnCalendar = "*-*-1,7,14,21 3:00:00"; OnCalendar = "*-*-1,7,14,21 3:00:00";
Persistent = true; Persistent = true;
Unit = "saveyoursoul.service"; Unit = "secureyoursoul.service";
}; };
}; };
systemd.services.saveyoursoul = { systemd.services.secureyoursoul = {
description = "Make curl requests to archive related things"; description = "Make curl requests to archive related things";
path = [ pkgs.coreutils pkgs.util-linux pkgs.curl ]; path = [ pkgs.coreutils pkgs.util-linux pkgs.curl ];
serviceConfig.Type = "oneshot"; serviceConfig.Type = "oneshot";