From 98d2b5732ec63853d5fb7718166f9d52b319988d Mon Sep 17 00:00:00 2001 From: osbm Date: Sat, 17 May 2025 00:38:33 +0300 Subject: [PATCH] formatting --- hosts/pochita/configuration.nix | 1 - modules/services/wanikani-fetch-data/default.nix | 12 +++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/hosts/pochita/configuration.nix b/hosts/pochita/configuration.nix index 5e7937c..a5ce70a 100644 --- a/hosts/pochita/configuration.nix +++ b/hosts/pochita/configuration.nix @@ -1,5 +1,4 @@ { - config, pkgs, lib, inputs, diff --git a/modules/services/wanikani-fetch-data/default.nix b/modules/services/wanikani-fetch-data/default.nix index a73f637..4193052 100644 --- a/modules/services/wanikani-fetch-data/default.nix +++ b/modules/services/wanikani-fetch-data/default.nix @@ -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"];