From 9c2e64516472f3dbf66dbad775ab1dba6f86baa3 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Tue, 2 Sep 2025 09:16:51 +0200 Subject: treewide: Remove `with pkgs;` This is an antipattern and makes grepping for specific packages harder. --- modules/by-name/fo/fonts/module.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'modules/by-name/fo/fonts/module.nix') 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 = { -- cgit 1.4.1