about summary refs log tree commit diff stats
path: root/modules/by-name/fo/fonts/module.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-09-02 09:16:51 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-09-02 09:16:51 +0200
commit9c2e64516472f3dbf66dbad775ab1dba6f86baa3 (patch)
tree192918c94896d738e8b4de01373b636524a28783 /modules/by-name/fo/fonts/module.nix
parenttreewide: Update (diff)
downloadnixos-config-9c2e64516472f3dbf66dbad775ab1dba6f86baa3.zip
treewide: Remove `with pkgs;`
This is an antipattern and makes grepping for specific packages harder.
Diffstat (limited to 'modules/by-name/fo/fonts/module.nix')
-rw-r--r--modules/by-name/fo/fonts/module.nix14
1 files changed, 9 insertions, 5 deletions
diff --git a/modules/by-name/fo/fonts/module.nix b/modules/by-name/fo/fonts/module.nix
index f8752ae6..c76557cc 100644
--- a/modules/by-name/fo/fonts/module.nix
+++ b/modules/by-name/fo/fonts/module.nix
@@ -20,10 +20,14 @@ in {
 
     fonts = lib.mkOption {
       type = lib.types.listOf lib.types.package;
-      example = lib.literalExpression ''with pkgs.nerdfonts; [SourceCodePro Overpass FiraCode]'';
-      default = with pkgs.nerd-fonts; [
-        sauce-code-pro
-        overpass
+      example = lib.literalExpression ''        [
+                pkgs.nerd-fonts.source-code-pro
+                pkgs.nerd-fonts.overpass
+                pkgs.nerd-fonts.fira-code
+            ]'';
+      default = [
+        pkgs.nerd-fonts.sauce-code-pro
+        pkgs.nerd-fonts.overpass
       ];
       description = "The nerd-fonts to install";
     };
@@ -35,7 +39,7 @@ in {
     fonts = {
       packages =
         cfg.fonts
-        ++ (with pkgs; [liberation_ttf])
+        ++ [pkgs.liberation_ttf]
         ++ lib.optional cfg.enableEmoji pkgs.noto-fonts-emoji;
 
       fontconfig = {