Skip to content

Commit

Permalink
feat(home-manager): add support for vivaldi
Browse files Browse the repository at this point in the history
  • Loading branch information
HeitorAugustoLN committed Jan 4, 2025
1 parent a2a3282 commit 5f7a99e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/home-manager/all-modules.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
./micro.nix
./mpv.nix
./neovim.nix
./obs.nix
./polybar.nix
./rio.nix
./rofi.nix
Expand All @@ -43,7 +44,7 @@
./sway.nix
./tmux.nix
./tofi.nix
./obs.nix
./vivaldi.nix
./waybar.nix
./wlogout.nix
./yazi.nix
Expand Down
19 changes: 19 additions & 0 deletions modules/home-manager/vivaldi.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{ catppuccinLib }:
{ config, lib, ... }:
let
cfg = config.catppuccin.vivaldi;

identifiers = {
frappe = "olhelnoplefjdmncknfphenjclimckaf";
latte = "jhjnalhegpceacdhbplhnakmkdliaddd";
macchiato = "cmpdlhmnmjhihmcfnigoememnffkimlk";
mocha = "bkkmolkhemgaeaeggcmfbghljjjoofoh";
};
in
{
options.catppuccin.vivaldi = catppuccinLib.mkCatppuccinOption { name = "vivaldi"; };

config = lib.mkIf cfg.enable {
programs.vivaldi.extensions = [ { id = identifiers.${cfg.flavor}; } ];
};
}

0 comments on commit 5f7a99e

Please sign in to comment.