Skip to content

Commit

Permalink
feat(home-manager): init imv module (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anomalocaridid authored Apr 7, 2024
1 parent dcdab84 commit 92034aa
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 0 deletions.
20 changes: 20 additions & 0 deletions _sources/generated.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 12 additions & 0 deletions _sources/generated.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
16 changes: 16 additions & 0 deletions modules/home-manager/imv.nix
Original file line number Diff line number Diff line change
@@ -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));
}
4 changes: 4 additions & 0 deletions nvfetcher.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions test.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ in
glamour.catppuccin.enable = true;
helix = ctpEnable;
home-manager.enable = false;
imv = ctpEnable;
kitty = ctpEnable;
lazygit = ctpEnable;
micro = ctpEnable;
Expand Down

0 comments on commit 92034aa

Please sign in to comment.