Files
Nomarchy/modules/home/fonts.nix
Bernardo Magri 33deeb494b initial commit
2026-04-01 17:06:01 +01:00

18 lines
448 B
Nix

{ 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";
};
};
}