feat(home): Base appearance

This commit is contained in:
punkfairie 2024-11-15 21:32:51 -08:00
parent c1dca2f9a2
commit f04ca9fc90
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696
2 changed files with 47 additions and 20 deletions

View file

@ -0,0 +1,47 @@
{
lib,
config,
namespace,
pkgs,
...
}:
let
inherit (lib) mkIf;
inherit (lib.${namespace}) mkEnableModule enabled;
cfg = config.${namespace}.appearance;
inherit (config.${namespace}) theme;
in
{
options = mkEnableModule "appearance";
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" ];
};
}

View file

@ -1,20 +0,0 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
maple-mono-NF
];
rose-pine.pointerCursor.enable = true;
home.iconTheme = {
package = pkgs.kora-icon-theme;
name = "kora";
};
fonts.fontconfig.defaultFonts.monospace = [ "Maple Mono NF" ];
imports = [
./gtk.nix
./qt.nix
];
}