about summary refs log tree commit diff
path: root/modules/nixos/common/stylix.nix
blob: 6249abfe0883d58a366cfc9a09491eb7d5dace12 (plain) (blame)
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
{
  config,
  inputs,
  lib,
  ...
}:
with lib; {
  imports = [inputs.stylix.nixosModules.stylix];

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

    fontconfig.defaultFonts = {
      serif = mkForce [
        "Iosevka Etoile"
        "Sarasa Gothic"
        "Source Han Serif"
        "Noto Serif"
      ];
      sansSerif = mkForce [
        "Iosevka Aile"
        "Sarasa Gothic"
        "Source Han Sans"
        "Noto Sans"
      ];
      monospace = mkForce [
        "Iosevka"
        "Sarasa Mono"
        "Source Han Mono"
        "Noto Sans Mono"
      ];
      emoji = mkForce [
        "Noto Color Emoji"
      ];
    };
  };
}

Consider giving Nix/NixOS a try! <3