1
Fork 0
satellite/modules/applications/alacritty.nix
2022-03-10 21:59:18 +02:00

34 lines
708 B
Nix

{ pkgs, lib, ... }:
let
themes = pkgs.myThemes;
createTheme = (theme: {
xdg.configFile."alacritty/themes/${theme.name}.yml".text = builtins.toJSON
(lib.attrs.recursiveUpdate theme.alacritty.settings {
import = [ "~/.config/alacritty/alacritty.yml" ];
});
});
createThemeConfigs = lib.lists.foldr
(acc: theme: lib.attrs.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";
};
};
}