From 76c060db831b717e45443d51a96c6c20ea55040a Mon Sep 17 00:00:00 2001 From: yunfachi Date: Thu, 14 Dec 2023 18:45:57 +0000 Subject: [PATCH] feat(home): add shikimori app --- flake.lock | 6 +++--- home/programs/shikimori.nix | 12 ++++++++++++ options/home/programs.nix | 1 + 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 home/programs/shikimori.nix diff --git a/flake.lock b/flake.lock index d7c9f5a..75fc847 100644 --- a/flake.lock +++ b/flake.lock @@ -150,11 +150,11 @@ ] }, "locked": { - "lastModified": 1702126384, - "narHash": "sha256-RUXGGqxB4VNqv9h9/XjijTECW+KRHGugzHlyZ9MSepA=", + "lastModified": 1702579239, + "narHash": "sha256-6KNjHLEExVxyPwAAHwINbn7J20ie3aZugkINZCAk8js=", "owner": "yunfachi", "repo": "nixpkgs-yunfachi", - "rev": "a7ac94c13daa680b2ae42db201f08543e7e905cb", + "rev": "636e063938acb0d07bf0cdf4589eb075f3cc4eb3", "type": "github" }, "original": { diff --git a/home/programs/shikimori.nix b/home/programs/shikimori.nix new file mode 100644 index 0000000..6170c85 --- /dev/null +++ b/home/programs/shikimori.nix @@ -0,0 +1,12 @@ +{ + config, + lib, + pkgs-yunfachi, + ... +}: let + cfg = config.yunfachi.shikimori; +in { + config = lib.mkIf cfg.enable { + home.packages = with pkgs-yunfachi; [shikimori]; + }; +} diff --git a/options/home/programs.nix b/options/home/programs.nix index fbd9c0c..131c649 100644 --- a/options/home/programs.nix +++ b/options/home/programs.nix @@ -9,5 +9,6 @@ in { options.yunfachi = { firefox.enable = lib.mkEnableOption "firefox" // {default = type == "desktop";}; kitty.enable = lib.mkEnableOption "kitty" // {default = type == "desktop";}; + shikimori.enable = lib.mkEnableOption "shikimori" // {default = type == "desktop";}; }; }