Obsolete fonts.extraFonts
You can now just set fonts.fonts, which will be merged with the default value unless you use mkOverride.
This commit is contained in:
parent
5ae8ed381c
commit
e6b5c0121f
@ -25,7 +25,7 @@ with lib;
|
|||||||
|
|
||||||
config = mkIf config.fonts.enableCoreFonts {
|
config = mkIf config.fonts.enableCoreFonts {
|
||||||
|
|
||||||
fonts.extraFonts = [ pkgs.corefonts ];
|
fonts.fonts = [ pkgs.corefonts ];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -10,38 +10,36 @@ with lib;
|
|||||||
|
|
||||||
# TODO: find another name for it.
|
# TODO: find another name for it.
|
||||||
fonts = mkOption {
|
fonts = mkOption {
|
||||||
default = [
|
|
||||||
# - the user's current profile
|
|
||||||
"~/.nix-profile/lib/X11/fonts"
|
|
||||||
"~/.nix-profile/share/fonts"
|
|
||||||
# - the default profile
|
|
||||||
"/nix/var/nix/profiles/default/lib/X11/fonts"
|
|
||||||
"/nix/var/nix/profiles/default/share/fonts"
|
|
||||||
];
|
|
||||||
description = "List of primary font paths.";
|
|
||||||
apply = list: list ++ [
|
|
||||||
# - a few statically built locations
|
|
||||||
pkgs.xorg.fontbhttf
|
|
||||||
pkgs.xorg.fontbhlucidatypewriter100dpi
|
|
||||||
pkgs.xorg.fontbhlucidatypewriter75dpi
|
|
||||||
pkgs.ttf_bitstream_vera
|
|
||||||
pkgs.freefont_ttf
|
|
||||||
pkgs.liberation_ttf
|
|
||||||
pkgs.xorg.fontbh100dpi
|
|
||||||
pkgs.xorg.fontmiscmisc
|
|
||||||
pkgs.xorg.fontcursormisc
|
|
||||||
]
|
|
||||||
++ config.fonts.extraFonts;
|
|
||||||
};
|
|
||||||
|
|
||||||
extraFonts = mkOption {
|
|
||||||
default = [];
|
|
||||||
example = [ pkgs.dejavu_fonts ];
|
example = [ pkgs.dejavu_fonts ];
|
||||||
description = "List of packages with additional fonts.";
|
description = "List of primary font paths.";
|
||||||
|
apply = list: list ++
|
||||||
|
[ # - the user's current profile
|
||||||
|
"~/.nix-profile/lib/X11/fonts"
|
||||||
|
"~/.nix-profile/share/fonts"
|
||||||
|
# - the default profile
|
||||||
|
"/nix/var/nix/profiles/default/lib/X11/fonts"
|
||||||
|
"/nix/var/nix/profiles/default/share/fonts"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
config = {
|
||||||
|
|
||||||
|
fonts.fonts =
|
||||||
|
[ pkgs.xorg.fontbhttf
|
||||||
|
pkgs.xorg.fontbhlucidatypewriter100dpi
|
||||||
|
pkgs.xorg.fontbhlucidatypewriter75dpi
|
||||||
|
pkgs.ttf_bitstream_vera
|
||||||
|
pkgs.freefont_ttf
|
||||||
|
pkgs.liberation_ttf
|
||||||
|
pkgs.xorg.fontbh100dpi
|
||||||
|
pkgs.xorg.fontmiscmisc
|
||||||
|
pkgs.xorg.fontcursormisc
|
||||||
|
];
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ with lib;
|
|||||||
|
|
||||||
config = mkIf config.fonts.enableGhostscriptFonts {
|
config = mkIf config.fonts.enableGhostscriptFonts {
|
||||||
|
|
||||||
fonts.extraFonts = [ "${pkgs.ghostscript}/share/ghostscript/fonts" ];
|
fonts.fonts = [ "${pkgs.ghostscript}/share/ghostscript/fonts" ];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -74,6 +74,7 @@ in zipModules ([]
|
|||||||
++ obsolete [ "environment" "x11Packages" ] [ "environment" "systemPackages" ]
|
++ obsolete [ "environment" "x11Packages" ] [ "environment" "systemPackages" ]
|
||||||
++ obsolete [ "environment" "enableBashCompletion" ] [ "programs" "bash" "enableCompletion" ]
|
++ obsolete [ "environment" "enableBashCompletion" ] [ "programs" "bash" "enableCompletion" ]
|
||||||
++ obsolete [ "environment" "nix" ] [ "nix" "package" ]
|
++ obsolete [ "environment" "nix" ] [ "nix" "package" ]
|
||||||
|
++ obsolete [ "fonts" "extraFonts" ] [ "fonts" "fonts" ]
|
||||||
|
|
||||||
++ obsolete [ "security" "extraSetuidPrograms" ] [ "security" "setuidPrograms" ]
|
++ obsolete [ "security" "extraSetuidPrograms" ] [ "security" "setuidPrograms" ]
|
||||||
++ obsolete [ "networking" "enableWLAN" ] [ "networking" "wireless" "enable" ]
|
++ obsolete [ "networking" "enableWLAN" ] [ "networking" "wireless" "enable" ]
|
||||||
|
@ -64,7 +64,7 @@ in {
|
|||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
services.upower.enable = config.powerManagement.enable;
|
services.upower.enable = config.powerManagement.enable;
|
||||||
|
|
||||||
fonts.extraFonts = [ pkgs.dejavu_fonts ];
|
fonts.fonts = [ pkgs.dejavu_fonts ];
|
||||||
|
|
||||||
services.xserver.desktopManager.session = singleton
|
services.xserver.desktopManager.session = singleton
|
||||||
{ name = "gnome3";
|
{ name = "gnome3";
|
||||||
|
Loading…
Reference in New Issue
Block a user