1
Fork 0
satellite/modules/applications/alacritty.nix

36 lines
766 B
Nix

{ pkgs, lib, ... }:
let
themes = pkgs.myThemes;
createTheme = (theme: {
xdg.configFile."alacritty/themes/${theme.name}.yml".text =
builtins.toJSON
(lib.attrsets.recursiveUpdate theme.alacritty.settings {
import = theme.alacritty.settings.import ++ [ "~/.config/alacritty/alacritty.yml" ];
});
});
createThemeConfigs = lib.lists.foldr
(theme: acc: lib.attrsets.recursiveUpdate acc (createTheme theme)
)
{ }
themes;
in
{
imports = [
{
home-manager.users.adrielus = createThemeConfigs;
}
];
home-manager.users.adrielus.programs.alacritty = {
enable = true;
settings = {
window.decorations = "none";
fonts.normal.family = "Nerd Font Source Code Pro";
};
};
}