2022-03-10 20:59:18 +01:00
|
|
|
{ pkgs, lib, ... }:
|
2022-01-30 13:54:23 +01:00
|
|
|
|
|
|
|
let
|
2022-03-10 20:59:18 +01:00
|
|
|
themes = pkgs.myThemes;
|
|
|
|
|
|
|
|
createTheme = (theme: {
|
2022-03-10 23:49:44 +01:00
|
|
|
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
|
2022-03-10 23:49:44 +01:00
|
|
|
(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
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|