formatting
This commit is contained in:
parent
1b3ccd811d
commit
98d2b5732e
2 changed files with 7 additions and 6 deletions
|
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
inputs,
|
||||
|
|
|
|||
|
|
@ -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"];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue