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

34 lines
708 B
Nix
Raw Normal View History

2022-03-10 20:59:18 +01:00
{ pkgs, lib, ... }:
let
2022-03-10 20:59:18 +01:00
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;
2022-02-07 11:47:03 +01:00
in
{
2022-03-10 20:59:18 +01:00
imports = [
{
home-manager.users.adrielus = createThemeConfigs;
}
];
2020-04-12 12:45:29 +02:00
home-manager.users.adrielus.programs.alacritty = {
enable = true;
settings = {
2022-03-10 20:59:18 +01:00
window.decorations = "none";
2022-02-07 12:27:36 +01:00
fonts.normal.family = "Nerd Font Source Code Pro";
2020-04-12 12:45:29 +02:00
};
};
}