Skip to content

Commit

Permalink
feat(home-manager): init fuzzel module
Browse files Browse the repository at this point in the history
  • Loading branch information
Anomalocaridid committed Jan 28, 2024
1 parent 310ab70 commit a0abcd9
Show file tree
Hide file tree
Showing 5 changed files with 54 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 @@ -99,6 +99,26 @@
},
"version": "0ce27b518e8ead555dec34dd8be3df5bd75cff8e"
},
"fuzzel": {
"cargoLocks": null,
"date": "2024-01-24",
"extract": null,
"name": "fuzzel",
"passthru": null,
"pinned": false,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"owner": "catppuccin",
"repo": "fuzzel",
"rev": "eeb4c8d159187ef7eb59a4a99baec67c2e797e9f",
"sha256": "sha256-yJvhc4ovgdxEdqFDxWNOkHJHTBF9UaCefetgCGhoG0A=",
"type": "github"
},
"version": "eeb4c8d159187ef7eb59a4a99baec67c2e797e9f"
},
"glamour": {
"cargoLocks": null,
"date": "2023-05-01",
Expand Down
12 changes: 12 additions & 0 deletions _sources/generated.nix
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,18 @@
};
date = "2023-11-02";
};
fuzzel = {
pname = "fuzzel";
version = "eeb4c8d159187ef7eb59a4a99baec67c2e797e9f";
src = fetchFromGitHub {
owner = "catppuccin";
repo = "fuzzel";
rev = "eeb4c8d159187ef7eb59a4a99baec67c2e797e9f";
fetchSubmodules = false;
sha256 = "sha256-yJvhc4ovgdxEdqFDxWNOkHJHTBF9UaCefetgCGhoG0A=";
};
date = "2024-01-24";
};
glamour = {
pname = "glamour";
version = "3ef2c9533b6d3c4d6309a850765500179cf32d1c";
Expand Down
17 changes: 17 additions & 0 deletions modules/home-manager/fuzzel.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{ config
, lib
, sources
, ...
}:
let
cfg = config.programs.fuzzel.catppuccin;
enable = cfg.enable && config.programs.fuzzel.enable;
themeFile = sources.fuzzel + /themes/${cfg.flavour}.ini;
in
{
options.programs.fuzzel.catppuccin =
lib.ctp.mkCatppuccinOpt "fuzzel";

config.programs.fuzzel.options = lib.mkIf enable
(lib.ctp.fromINI themeFile);
}
4 changes: 4 additions & 0 deletions nvfetcher.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ fetch.github = "catppuccin/btop"
src.git = "https://github.com/catppuccin/fish.git"
fetch.github = "catppuccin/fish"

[fuzzel]
src.git = "https://github.com/catppuccin/fuzzel.git"
fetch.github = "catppuccin/fuzzel"

[glamour]
src.git = "https://github.com/catppuccin/glamour.git"
fetch.github = "catppuccin/glamour"
Expand Down
1 change: 1 addition & 0 deletions test.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ in
bottom = ctpEnable;
btop = ctpEnable;
fish = ctpEnable;
fuzzel = ctpEnable;
glamour.catppuccin.enable = true;
helix = ctpEnable;
home-manager.enable = false;
Expand Down

0 comments on commit a0abcd9

Please sign in to comment.