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

36 lines
766 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.attrsets.recursiveUpdate theme.alacritty.settings {
import = theme.alacritty.settings.import ++ [ "~/.config/alacritty/alacritty.yml" ];
});
2022-03-10 20:59:18 +01:00
});
createThemeConfigs = lib.lists.foldr
(theme: acc: lib.attrsets.recursiveUpdate acc (createTheme theme)
)
2022-03-10 20:59:18 +01:00
{ }
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
};
};
}