From 92034aab312607e818ff66f4572f7085994498d7 Mon Sep 17 00:00:00 2001 From: Anomalocaridid <29845794+Anomalocaridid@users.noreply.github.com> Date: Sun, 7 Apr 2024 05:42:34 -0400 Subject: [PATCH] feat(home-manager): init imv module (#94) --- _sources/generated.json | 20 ++++++++++++++++++++ _sources/generated.nix | 12 ++++++++++++ modules/home-manager/imv.nix | 16 ++++++++++++++++ nvfetcher.toml | 4 ++++ test.nix | 1 + 5 files changed, 53 insertions(+) create mode 100644 modules/home-manager/imv.nix diff --git a/_sources/generated.json b/_sources/generated.json index 78063ce..c09aded 100644 --- a/_sources/generated.json +++ b/_sources/generated.json @@ -219,6 +219,26 @@ }, "version": "b57375545f5da1f7790341905d1049b1873a8bb3" }, + "imv": { + "cargoLocks": null, + "date": "2024-01-17", + "extract": null, + "name": "imv", + "passthru": null, + "pinned": false, + "src": { + "deepClone": false, + "fetchSubmodules": false, + "leaveDotGit": false, + "name": null, + "owner": "catppuccin", + "repo": "imv", + "rev": "0317a097b6ec8122b1da6d02f61d0c5158019f6e", + "sha256": "sha256-n6obxM5iVSOdlGdI8ZEmYuxudarLoZHqGETrpTcdrok=", + "type": "github" + }, + "version": "0317a097b6ec8122b1da6d02f61d0c5158019f6e" + }, "kitty": { "cargoLocks": null, "date": "2024-01-10", diff --git a/_sources/generated.nix b/_sources/generated.nix index 4247c81..a9a8a0e 100644 --- a/_sources/generated.nix +++ b/_sources/generated.nix @@ -133,6 +133,18 @@ }; date = "2024-04-03"; }; + imv = { + pname = "imv"; + version = "0317a097b6ec8122b1da6d02f61d0c5158019f6e"; + src = fetchFromGitHub { + owner = "catppuccin"; + repo = "imv"; + rev = "0317a097b6ec8122b1da6d02f61d0c5158019f6e"; + fetchSubmodules = false; + sha256 = "sha256-n6obxM5iVSOdlGdI8ZEmYuxudarLoZHqGETrpTcdrok="; + }; + date = "2024-01-17"; + }; kitty = { pname = "kitty"; version = "d7d61716a83cd135344cbb353af9d197c5d7cec1"; diff --git a/modules/home-manager/imv.nix b/modules/home-manager/imv.nix new file mode 100644 index 0000000..88bab81 --- /dev/null +++ b/modules/home-manager/imv.nix @@ -0,0 +1,16 @@ +{ config +, lib +, sources +, ... +}: +let + cfg = config.programs.imv.catppuccin; + enable = cfg.enable && config.programs.imv.enable; +in +{ + options.programs.imv.catppuccin = + lib.ctp.mkCatppuccinOpt "imv"; + + config.programs.imv.settings = lib.mkIf enable + (lib.ctp.fromINI (sources.imv + /themes/${cfg.flavour}.config)); +} diff --git a/nvfetcher.toml b/nvfetcher.toml index 05c19c4..e7d9a63 100644 --- a/nvfetcher.toml +++ b/nvfetcher.toml @@ -42,6 +42,10 @@ fetch.github = "catppuccin/helix" src.git = "https://github.com/catppuccin/hyprland.git" fetch.github = "catppuccin/hyprland" +[imv] +src.git = "https://github.com/catppuccin/imv.git" +fetch.github = "catppuccin/imv" + [kitty] src.git = "https://github.com/catppuccin/kitty.git" fetch.github = "catppuccin/kitty" diff --git a/test.nix b/test.nix index abd8b82..4bb7fd6 100644 --- a/test.nix +++ b/test.nix @@ -64,6 +64,7 @@ in glamour.catppuccin.enable = true; helix = ctpEnable; home-manager.enable = false; + imv = ctpEnable; kitty = ctpEnable; lazygit = ctpEnable; micro = ctpEnable;