diff options
author | Vincent Ambo <mail@tazj.in> | 2022-05-09T13·26+0200 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2022-05-10T13·41+0000 |
commit | 155902744bae2c8287742232025fb1659f727f50 (patch) | |
tree | 01e80f9a83f6af5d391a8b4ed571ea69d98289df /users/tazjin | |
parent | dd2ae8552fc871fbbb69589a8dbd65441828a378 (diff) |
refactor(tazjin/nixos): Extract font configuration module r/4041
Change-Id: I067d832155db61fb426ea3435e038231f321f71a Reviewed-on: https://cl.tvl.fyi/c/depot/+/5545 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su>
Diffstat (limited to 'users/tazjin')
-rw-r--r-- | users/tazjin/nixos/modules/fonts.nix | 24 | ||||
-rw-r--r-- | users/tazjin/nixos/tverskoy/default.nix | 20 |
2 files changed, 25 insertions, 19 deletions
diff --git a/users/tazjin/nixos/modules/fonts.nix b/users/tazjin/nixos/modules/fonts.nix new file mode 100644 index 000000000000..3b4461056f24 --- /dev/null +++ b/users/tazjin/nixos/modules/fonts.nix @@ -0,0 +1,24 @@ +# Attempt at configuring reasonable font-rendering. + +{ pkgs, ... }: + +{ + fonts = { + fonts = with pkgs; [ + corefonts + dejavu_fonts + jetbrains-mono + noto-fonts-cjk + noto-fonts-emoji + ]; + + fontconfig = { + hinting.enable = true; + subpixel.lcdfilter = "light"; + + defaultFonts = { + monospace = [ "JetBrains Mono" ]; + }; + }; + }; +} diff --git a/users/tazjin/nixos/tverskoy/default.nix b/users/tazjin/nixos/tverskoy/default.nix index b789e50d43f3..c2a8367846c4 100644 --- a/users/tazjin/nixos/tverskoy/default.nix +++ b/users/tazjin/nixos/tverskoy/default.nix @@ -15,6 +15,7 @@ lib.fix (self: { imports = [ (mod "open_eid.nix") (usermod "physical.nix") + (usermod "fonts.nix") "${depot.third_party.impermanence}/nixos.nix" "${pkgs.home-manager.src}/nixos" ] ++ lib.optional (builtins.pathExists ./local-config.nix) ./local-config.nix; @@ -108,25 +109,6 @@ lib.fix (self: { ]; }; - fonts = { - fonts = with pkgs; [ - corefonts - dejavu_fonts - jetbrains-mono - noto-fonts-cjk - noto-fonts-emoji - ]; - - fontconfig = { - hinting.enable = true; - subpixel.lcdfilter = "light"; - - defaultFonts = { - monospace = [ "JetBrains Mono" ]; - }; - }; - }; - environment.persistence."/persist" = { directories = [ "/etc/NetworkManager/system-connections" |