2024-11-15 21:32:51 -08:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
2025-01-11 10:57:50 -08:00
|
|
|
system,
|
2024-11-15 21:32:51 -08:00
|
|
|
...
|
2025-01-06 20:44:48 -08:00
|
|
|
}: let
|
2024-11-16 23:29:38 -08:00
|
|
|
inherit (lib) mkEnableOption mkIf;
|
2025-01-11 10:57:50 -08:00
|
|
|
inherit (lib.snowfall.system) is-linux;
|
2024-11-16 23:29:38 -08:00
|
|
|
inherit (lib.marleyos) enabled;
|
2024-11-15 21:32:51 -08:00
|
|
|
|
2024-11-16 22:34:40 -08:00
|
|
|
cfg = config.marleyos.appearance.base;
|
|
|
|
inherit (config.marleyos.theme) colors;
|
2024-11-16 23:36:51 -08:00
|
|
|
inherit (config.marleyos) isDesktop;
|
2025-01-06 20:44:48 -08:00
|
|
|
in {
|
2024-11-16 23:29:38 -08:00
|
|
|
options.marleyos.appearance.base.enable = mkEnableOption "base";
|
2024-11-15 21:32:51 -08:00
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
home.packages = with pkgs; [
|
2025-01-06 20:44:48 -08:00
|
|
|
# TODO: package font with harfbuzz features.
|
2024-11-15 21:32:51 -08:00
|
|
|
maple-mono-NF
|
2025-01-11 10:57:50 -08:00
|
|
|
dm-sans
|
|
|
|
eb-garamond
|
2025-01-11 11:38:37 -08:00
|
|
|
whatsapp-emoji-font
|
2024-11-15 21:32:51 -08:00
|
|
|
];
|
|
|
|
|
2024-11-16 22:44:45 -08:00
|
|
|
rose-pine.pointerCursor = mkIf colors.isRosePine enabled;
|
2024-11-15 21:32:51 -08:00
|
|
|
|
2024-11-16 22:34:40 -08:00
|
|
|
marleyos.theme = {
|
2024-11-16 23:36:51 -08:00
|
|
|
colors = {
|
|
|
|
default = "dark";
|
|
|
|
|
|
|
|
dark = {
|
|
|
|
base = "rose-pine";
|
|
|
|
flavor = "main";
|
|
|
|
};
|
|
|
|
|
|
|
|
light = {
|
|
|
|
base = "rose-pine";
|
|
|
|
flavor = "dawn";
|
|
|
|
};
|
2024-11-15 21:32:51 -08:00
|
|
|
};
|
|
|
|
|
2024-11-16 23:36:51 -08:00
|
|
|
icons = {
|
|
|
|
package = pkgs.kora-icon-theme;
|
|
|
|
name = "kora";
|
2024-11-15 21:32:51 -08:00
|
|
|
};
|
|
|
|
|
2025-01-06 20:44:48 -08:00
|
|
|
pinentry =
|
|
|
|
if isDesktop
|
|
|
|
then pkgs.pinentry-gtk2
|
|
|
|
else pkgs.pinentry-curses;
|
2024-11-15 21:32:51 -08:00
|
|
|
};
|
|
|
|
|
2025-01-11 10:57:50 -08:00
|
|
|
fonts.fontconfig = mkIf (is-linux system) {
|
2025-01-06 20:44:48 -08:00
|
|
|
enable = true;
|
2025-01-11 10:57:50 -08:00
|
|
|
defaultFonts = {
|
|
|
|
monospace = ["Maple Mono NF"];
|
|
|
|
sansSerif = ["DeepMind Sans"]; # dm-sans
|
|
|
|
serif = ["EB Garamond"];
|
2025-01-11 11:38:37 -08:00
|
|
|
emoji = ["Apple Color Emoji"]; # whatsapp-emoji-font
|
2025-01-11 10:57:50 -08:00
|
|
|
};
|
2025-01-06 20:44:48 -08:00
|
|
|
};
|
2024-11-15 21:32:51 -08:00
|
|
|
};
|
|
|
|
}
|