Skip to content

Commit

Permalink
feat(home-manager): add support for fuzzel
Browse files Browse the repository at this point in the history
  • Loading branch information
Anomalocaridid committed Jul 26, 2024
1 parent 8bdb55c commit 6dff2fa
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .sources/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,18 @@
"url": "https://github.com/catppuccin/foot/archive/80756a4d63ea4fae4d0fdd793017370f8b8b12ac.tar.gz",
"hash": "12a3znfdjpiqrylpv009cvi4w4dgw4i6kxk5gm959y72gybbpbw7"
},
"fuzzel": {
"type": "Git",
"repository": {
"type": "GitHub",
"owner": "catppuccin",
"repo": "fuzzel"
},
"branch": "main",
"revision": "125dc68ba79ddfe71e59412257698418c4f05218",
"url": "https://github.com/catppuccin/fuzzel/archive/125dc68ba79ddfe71e59412257698418c4f05218.tar.gz",
"hash": "12vdwfm17f40c0pv8i36kfmpsx5jnxbdjyz0jajcfx419dl3mpms"
},
"gh-dash": {
"type": "Git",
"repository": {
Expand Down
1 change: 1 addition & 0 deletions modules/home-manager/all-modules.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
./fcitx5.nix
./fish.nix
./foot.nix
./fuzzel.nix
./fzf.nix
./gh-dash.nix
./gitui.nix
Expand Down
14 changes: 14 additions & 0 deletions modules/home-manager/fuzzel.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{ config, lib, ... }:
let
inherit (config.catppuccin) sources;
cfg = config.programs.fuzzel.catppuccin;
in
{
options.programs.fuzzel.catppuccin = lib.ctp.mkCatppuccinOpt { name = "fuzzel"; } // {
accent = lib.ctp.mkAccentOpt "fuzzel";
};

config = lib.mkIf cfg.enable {
programs.fuzzel.settings.main.include = sources.fuzzel + "/themes/${cfg.flavor}/${cfg.accent}.ini";
};
}
1 change: 1 addition & 0 deletions tests/darwin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
programs = {
cava.enable = lib.mkForce false; # NOTE: this may actually work on darwin, but the package is currently not supported
foot.enable = lib.mkForce false;
fuzzel.enable = lib.mkForce false;
imv.enable = lib.mkForce false;
mpv.enable = lib.mkForce false; # NOTE: same as cava, but `mpv` fails to build currently
rofi.enable = lib.mkForce false;
Expand Down
1 change: 1 addition & 0 deletions tests/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
cava.enable = true;
fish.enable = true;
foot.enable = true;
fuzzel.enable = true;
fzf.enable = true;
gh-dash.enable = true;
git = {
Expand Down

0 comments on commit 6dff2fa

Please sign in to comment.