Initial commit
This commit is contained in:
23
modules/misc/fonts.nix
Normal file
23
modules/misc/fonts.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
cfg = config.my.misc.fonts;
|
||||
in
|
||||
{
|
||||
options.my.misc.fonts = {
|
||||
extra = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.package;
|
||||
default = [ ];
|
||||
description = "Extra font packages to install in addition to the defaults.";
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
fonts.packages =
|
||||
(with pkgs; [
|
||||
dejavu_fonts
|
||||
noto-fonts
|
||||
noto-fonts-color-emoji
|
||||
])
|
||||
++ cfg.extra;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user