summaryrefslogtreecommitdiff
path: root/modules/nixos/common/stylix.nix
blob: 5ca557174e5b0fa569e9c1d5d8e026ad291a71d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
  config,
  inputs,
  lib,
  pkgs,
  ...
}:
with lib; {
  imports = [inputs.stylix.nixosModules.stylix];

  stylix.cursor = {
    name = "phinger-cursors";
    package = pkgs.phinger-cursors;
    size = 32;
  };

  fonts = {
    packages = mkAfter config.nixfiles.modules.common.stylix.fonts.extraPackages;

    fontconfig.defaultFonts = with config.stylix.fonts; {
      serif = mkForce [
        serif.name
        "Sarasa Gothic"
        "Source Han Serif"
        "Noto Serif"
      ];
      sansSerif = mkForce [
        sansSerif.name
        "Sarasa Gothic"
        "Source Han Sans"
        "Noto Sans"
      ];
      monospace = mkForce [
        monospace.name
        "Sarasa Mono"
        "Source Han Mono"
        "Noto Sans Mono"
      ];
      emoji = mkForce [
        "Twitter Color Emoji"
        "Noto Color Emoji"
      ];
    };
  };
}