From f36491c92269d3e1dd241e67c292af762ac498c3 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Thu, 24 Sep 2026 19:16:14 +0530 Subject: refactor: some more minor refactoring --- modules/fonts/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'modules/fonts') diff --git a/modules/fonts/default.nix b/modules/fonts/default.nix index b7d78df..d2826fc 100644 --- a/modules/fonts/default.nix +++ b/modules/fonts/default.nix @@ -5,6 +5,9 @@ pkgs, ... }: +let + cfg = config.fonts; +in { options.fonts = { normal = lib.mkOption { @@ -15,13 +18,13 @@ bold = lib.mkOption { type = lib.types.str; description = "Default bold font name."; - default = config.fonts.normal; + default = cfg.normal; }; italic = lib.mkOption { type = lib.types.str; description = "Default italic font name."; - default = config.fonts.normal; + default = cfg.normal; }; size = lib.mkOption { -- cgit v1.2.3