make fonts an option

This commit is contained in:
Osman Faruk Bayram 2025-01-15 15:53:02 +03:00
parent e6fb13e4ce
commit a6681472ab

View file

@ -4,6 +4,17 @@
config, config,
... ...
}: { }: {
options = {
enableFonts = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Enable my favorite fonts";
};
};
config = lib.mkMerge [
(lib.mkIf config.enableFonts {
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
noto-fonts noto-fonts
noto-fonts-cjk-sans noto-fonts-cjk-sans
@ -23,4 +34,8 @@
font-awesome_5 font-awesome_5
roboto roboto
]; ];
})
];
} }