mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/steam: fix evaluation failure when fonts.packages
contains path
This commit is contained in:
parent
150a859d34
commit
1652a914fd
1 changed files with 3 additions and 2 deletions
|
@ -104,8 +104,9 @@ in {
|
|||
|
||||
fontPackages = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.package;
|
||||
default = config.fonts.packages;
|
||||
defaultText = lib.literalExpression "fonts.packages";
|
||||
# `fonts.packages` is a list of paths now, filter out which are not packages
|
||||
default = builtins.filter lib.types.package.check config.fonts.packages;
|
||||
defaultText = lib.literalExpression "builtins.filter lib.types.package.check config.fonts.packages";
|
||||
example = lib.literalExpression "with pkgs; [ source-han-sans ]";
|
||||
description = ''
|
||||
Font packages to use in Steam.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue