marleyos/modules/home/appearance/base/default.nix

48 lines
845 B
Nix
Raw Normal View History

2024-11-15 21:32:51 -08:00
{
lib,
config,
namespace,
pkgs,
...
}:
let
inherit (lib) mkIf;
inherit (lib.${namespace}) mkEnableModule enabled;
cfg = config.${namespace}.appearance.base;
2024-11-15 21:32:51 -08:00
inherit (config.${namespace}) theme;
in
{
options.appearance = mkEnableModule "base";
2024-11-15 21:32:51 -08:00
config = mkIf cfg.enable {
home.packages = with pkgs; [
maple-mono-NF
];
${theme.colors.base}.pointerCursor = enabled;
${namespace}.theme = {
default = "dark";
dark = {
base = "rose-pine";
flavor = "main";
};
light = {
base = "rose-pine";
flavor = "dawn";
};
};
${namespace}.theme.icons = {
package = pkgs.kora-icon-theme;
name = "kora";
};
# TODO: package font with harfbuzz features.
fonts.fontconfig.defaultFonts.monospace = [ "Maple Mono NF" ];
};
}