From 0957b051ef4befd86ce97deef04f5095bea9543b Mon Sep 17 00:00:00 2001 From: seth Date: Mon, 20 Feb 2023 01:53:23 -0500 Subject: start using nixpkgs-fmt --- hosts/common/fonts.nix | 61 +++++++++++++++++++++++++------------------------- 1 file changed, 31 insertions(+), 30 deletions(-) (limited to 'hosts/common/fonts.nix') diff --git a/hosts/common/fonts.nix b/hosts/common/fonts.nix index 78993cf..a9b133c 100644 --- a/hosts/common/fonts.nix +++ b/hosts/common/fonts.nix @@ -1,32 +1,33 @@ +{ pkgs +, desktop +, ... +}: +let + gui = desktop != ""; +in { - pkgs, - desktop, - ... -}: let - gui = desktop != ""; -in { - fonts = { - enableDefaultFonts = gui; - fonts = - if gui - then - with pkgs; [ - noto-fonts - noto-fonts-extra - noto-fonts-emoji - noto-fonts-cjk-sans - fira-code - (nerdfonts.override {fonts = ["FiraCode"];}) - ] - else []; - fontconfig.defaultFonts = - if gui - then { - serif = ["Noto Serif"]; - sansSerif = ["Noto Sans"]; - emoji = ["Noto Color Emoji"]; - monospace = ["Fira Code"]; - } - else {}; - }; + fonts = { + enableDefaultFonts = gui; + fonts = + if gui + then + with pkgs; [ + noto-fonts + noto-fonts-extra + noto-fonts-emoji + noto-fonts-cjk-sans + fira-code + (nerdfonts.override { fonts = [ "FiraCode" ]; }) + ] + else [ ]; + fontconfig.defaultFonts = + if gui + then { + serif = [ "Noto Serif" ]; + sansSerif = [ "Noto Sans" ]; + emoji = [ "Noto Color Emoji" ]; + monospace = [ "Fira Code" ]; + } + else { }; + }; } -- cgit v1.2.3