Skip to content

Commit

Permalink
fix(home-manager): use toml files for alacritty
Browse files Browse the repository at this point in the history
  • Loading branch information
getchoo committed Jan 11, 2024
1 parent c8c9a93 commit e6e237e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions modules/home-manager/alacritty.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ in
options.programs.alacritty.catppuccin =
ctp.mkCatppuccinOpt "alacritty";

config.programs.alacritty.settings =
let
file = "${sources.alacritty}/catppuccin-${cfg.flavour}.yml";
in
lib.mkIf enable (ctp.fromYaml file);
config = lib.mkIf enable {
programs.alacritty.settings = lib.importTOML "${sources.alacritty}/catppuccin-${cfg.flavour}.toml";
};
}

0 comments on commit e6e237e

Please sign in to comment.