{ config, pkgs, lib, ... }: let stateFile = "${config.home.homeDirectory}/.config/home-manager/font-state.nix"; activeFont = if builtins.pathExists stateFile then lib.removeSuffix "\n" (builtins.readFile stateFile) else "JetBrainsMono Nerd Font"; in { options.nomarchy.fonts = { monospace = lib.mkOption { type = lib.types.str; default = activeFont; description = "Monospace font for the system"; }; }; }