diff options
| author | Arpit Chakladar <arpitchakladar@proton.me> | 2026-03-12 18:48:40 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar@proton.me> | 2026-03-12 18:48:40 +0530 |
| commit | 51d537e03ad877566f00af3c6a1c00340512ac65 (patch) | |
| tree | 7f8e1c6fccc68ba2ad7c3a2a02fb6efbc36d37d3 /modules/fonts | |
| parent | d6ccf7e455bd6947664d4a44dfe578813fa2b4eb (diff) | |
| download | home-manager-config-51d537e03ad877566f00af3c6a1c00340512ac65.tar.gz home-manager-config-51d537e03ad877566f00af3c6a1c00340512ac65.zip | |
Using spaces instead of tabs
Diffstat (limited to 'modules/fonts')
| -rw-r--r-- | modules/fonts/default.nix | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/modules/fonts/default.nix b/modules/fonts/default.nix index e6c9acb..4bd664f 100644 --- a/modules/fonts/default.nix +++ b/modules/fonts/default.nix @@ -1,36 +1,36 @@ { lib, config, pkgs, ... }: { - options.fonts = { - normal = lib.mkOption { - type = lib.types.str; - description = "Default normal font name."; - }; - - bold = lib.mkOption { - type = lib.types.str; - description = "Default bold font name."; - default = config.fonts.normal; - }; - - italic = lib.mkOption { - type = lib.types.str; - description = "Default italic font name."; - default = config.fonts.normal; - }; - - size = lib.mkOption { - type = lib.types.int; - description = "Default font size."; - default = 16; - }; - }; - - config = { - fonts.normal = lib.mkDefault "Fira Code Nerd Font"; - - home.packages = with pkgs; [ - nerd-fonts.fira-code - ]; - }; + options.fonts = { + normal = lib.mkOption { + type = lib.types.str; + description = "Default normal font name."; + }; + + bold = lib.mkOption { + type = lib.types.str; + description = "Default bold font name."; + default = config.fonts.normal; + }; + + italic = lib.mkOption { + type = lib.types.str; + description = "Default italic font name."; + default = config.fonts.normal; + }; + + size = lib.mkOption { + type = lib.types.int; + description = "Default font size."; + default = 16; + }; + }; + + config = { + fonts.normal = lib.mkDefault "Fira Code Nerd Font"; + + home.packages = with pkgs; [ + nerd-fonts.fira-code + ]; + }; } |
