nixos-config/configurations/profile/home/fonts.nix

14 lines
405 B
Nix
Raw Permalink Normal View History

{ config, pkgs, lib, materusArg, ... }:
2023-10-08 11:42:08 +02:00
let
packages = config.materus.profile.packages;
cfg = config.materus.profile.fonts;
in
{
options.materus.profile.fonts.enable = materusArg.pkgs.lib.mkBoolOpt config.materus.profile.enableDesktop "Enable materus font settings";
2024-03-11 16:19:31 +01:00
2023-10-08 11:42:08 +02:00
config = lib.mkIf cfg.enable {
fonts.fontconfig.enable = lib.mkDefault true;
home.packages = packages.list.fonts;
};
2024-03-11 16:19:31 +01:00
}