formatting

This commit is contained in:
Osman Faruk Bayram 2025-05-17 00:38:33 +03:00
parent 1b3ccd811d
commit 98d2b5732e
2 changed files with 7 additions and 6 deletions

View file

@ -1,5 +1,4 @@
{
config,
pkgs,
lib,
inputs,

View file

@ -1,19 +1,21 @@
{pkgs, config, lib, ...}:
let
{
pkgs,
config,
lib,
...
}: let
wanikani-fetcher = pkgs.writeShellApplication {
name = "wanikani-fetcher";
runtimeInputs = with pkgs; [curl jq zip];
# read script from the wanikani-fetcher.sh file
text = builtins.readFile ./wanikani-fetcher.sh;
};
in {
in {
options.services.wanikani-fetch-data.enable = lib.mkEnableOption {
description = "Enable WaniKani Fetch Data";
default = false;
};
config = lib.mkIf config.services.wanikani-fetch-data.enable {
systemd.timers.wanikani-fetch-data = {
description = "WaniKani Fetch Data";
wantedBy = ["timers.target"];