From 62100c9265a4de389d1ea8060cbddddacde161a7 Mon Sep 17 00:00:00 2001 From: Leonardo Santiago Date: Thu, 12 Sep 2024 21:44:46 -0300 Subject: split users/leonardo.nix into modules with options in order to be able to deploy just a few of those to iori.nix --- modules/fonts.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 modules/fonts.nix (limited to 'modules/fonts.nix') diff --git a/modules/fonts.nix b/modules/fonts.nix new file mode 100644 index 0000000..286f670 --- /dev/null +++ b/modules/fonts.nix @@ -0,0 +1,24 @@ +{ config, lib, pkgs, ...} : with lib; { + options.santi-modules.font-config.enable = mkOption { + type = types.bool; + default = true; + description = "Installs default fonts."; + }; + config = mkIf config.santi-modules.font-config.enable { + fonts = { + fontconfig = { + enable = true; + defaultFonts = { + monospace = [ "Iosevka" "IPAGothic" ]; + serif = [ "DejaVu Serif" "IPAPMincho" ]; + }; + }; + packages = with pkgs; [ + (nerdfonts.override { fonts = [ "Iosevka" "FiraCode" ]; }) + ipafont + kochi-substitute + dejavu_fonts + ]; + }; + }; +} -- cgit v1.2.3