Added font config
This commit is contained in:
parent
ce64b0ca1b
commit
df62cf69ac
31
modules/home/fonts/default.nix
Normal file
31
modules/home/fonts/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
namespace,
|
||||
...
|
||||
}: let
|
||||
cfg = config.${namespace}.fonts;
|
||||
in {
|
||||
options.${namespace}.fonts = {
|
||||
enable = lib.mkEnableOption "font config";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
(nerdfonts.override {fonts = ["Hack"];})
|
||||
noto-fonts
|
||||
noto-fonts-color-emoji
|
||||
];
|
||||
|
||||
fonts.fontconfig = {
|
||||
enable = true;
|
||||
defaultFonts = {
|
||||
monospace = ["Hack Nerd Font"];
|
||||
emoji = ["Noto Color Emoji"];
|
||||
serif = ["Noto Serif"];
|
||||
sansSerif = ["Noto Sans"];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -39,6 +39,7 @@ in {
|
|||
|
||||
config = mkIf cfg.enable {
|
||||
${namespace} = {
|
||||
fonts.enable = true;
|
||||
programs = {
|
||||
kitty.enable = true;
|
||||
rofi.enable = true;
|
||||
|
|
Loading…
Reference in a new issue