mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
49592d7f01
I also fixed the long-time occuring error when using the newest version of the channel (or the unstable one). It turns out to be a simple type error with the `my.user' attribute. (To be honest the error messages are quite horrible.) On another note, I also accidentally bricked my NixOS setup after a garbage collection and a horrible update. The breakage includes not being able to use any of the builtin tools of Nix (e.g., nix, nix-env, nixos-rebuild) due to a shared library error that has been garbage collected. Which means I have to reinstall it. (I seem to have a talent for breaking things, if only I'm paid for it.)
44 lines
1.5 KiB
Nix
Executable File
44 lines
1.5 KiB
Nix
Executable File
# My selection of fonts for this setup.
|
|
{ config, options, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
{
|
|
options.modules.desktop.fonts = {
|
|
enable = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
};
|
|
};
|
|
|
|
config = mkIf config.modules.desktop.fonts.enable {
|
|
# Enable fontconfig to easily discover fonts installed from home-manager.
|
|
fonts = {
|
|
enableFontDir = true;
|
|
enableDefaultFonts = true;
|
|
fontconfig = {
|
|
enable = true;
|
|
defaultFonts = {
|
|
sansSerif = [ "Source Sans Pro" "IBM Plex Sans" ];
|
|
serif = [ "Source Serif Pro" "IBM Plex Serif" ];
|
|
monospace = [ "Source Code Pro" "IBM Plex Mono" ];
|
|
};
|
|
};
|
|
|
|
fonts = with pkgs; [
|
|
dejavu_fonts
|
|
fira-code # The programming font with fancy symbols.
|
|
ibm-plex # IBM's face, is it professional?
|
|
iosevka # The fancy monofont with fancy ligatures.
|
|
jetbrains-mono # Jet to the face, land on the brains.
|
|
latinmodern-math # The ol' mathematical typeface.
|
|
noto-fonts # It's all about family and that's what so powerful about it.
|
|
noto-fonts-cjk # I don't condone anime.
|
|
source-code-pro # The Adobe pro code.
|
|
source-serif-pro # The Adobe serif code.
|
|
source-sans-pro # The above descriptions doesn't make much sense.
|
|
stix-otf # The font you need for them math moonrunes.
|
|
];
|
|
};
|
|
};
|
|
}
|