summaryrefslogtreecommitdiff
path: root/hosts/common/fonts.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-02-20 01:53:23 -0500
committerseth <[email protected]>2023-02-20 01:53:23 -0500
commit0957b051ef4befd86ce97deef04f5095bea9543b (patch)
treea669111fa7b0123a4e77819ddce0c0c75bef554f /hosts/common/fonts.nix
parenta276cdbfa83425423c096d8049e6e29770018e31 (diff)
start using nixpkgs-fmt
Diffstat (limited to 'hosts/common/fonts.nix')
-rw-r--r--hosts/common/fonts.nix61
1 files changed, 31 insertions, 30 deletions
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 { };
+ };
}