Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(home-manager): add support for fuzzel #75

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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