feat(home-manager): init imv module (#94)

This commit is contained in:
Anomalocaridid 2024-04-07 05:42:34 -04:00 committed by GitHub
parent dcdab84b3b
commit 92034aab31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 53 additions and 0 deletions

View file

@ -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",

View file

@ -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";

View file

@ -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));
}

View file

@ -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"

View file

@ -64,6 +64,7 @@ in
glamour.catppuccin.enable = true;
helix = ctpEnable;
home-manager.enable = false;
imv = ctpEnable;
kitty = ctpEnable;
lazygit = ctpEnable;
micro = ctpEnable;