feat(home): Base appearance
This commit is contained in:
parent
c1dca2f9a2
commit
f04ca9fc90
2 changed files with 47 additions and 20 deletions
47
modules/home/appearance/base/default.nix
Normal file
47
modules/home/appearance/base/default.nix
Normal 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" ];
|
||||
};
|
||||
}
|
|
@ -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
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue