feat: init fonts.nix module

This commit is contained in:
notohh 2023-03-31 18:15:58 -04:00
parent c6216916ce
commit a689375bb0
Signed by: notohh
GPG key ID: BD47506D475EE86D
4 changed files with 54 additions and 42 deletions

View file

@ -1,6 +1,8 @@
{ config, pkgs, ... }:
{
{
config,
pkgs,
...
}: {
imports =
[
./hardware-configuration.nix

View file

@ -1,6 +1,8 @@
{ config, pkgs, inputs, ... }:
{
{
config,
pkgs,
...
}: {
imports =
[
./hardware-configuration.nix
@ -26,11 +28,15 @@
virtualisation.libvirtd.enable = true;
networking.hostName = "tsuki";
networking = {
networkmanager.enable = true;
nameservers = [ "192.168.1.45" ];
hostName = "tsuki";
firewall = {
enable = true;
};
};
networking.networkmanager.enable = true;
networking.nameservers = [ "192.168.1.45" ];
# pihole
environment.etc = {
"resolv.conf".text = "nameserver 192.168.1.45\n";
@ -61,11 +67,6 @@
videoDrivers = [ "nvidia" ];
layout = "us";
xkbVariant = "";
displayManager = {
lightdm = {
enable = false;
};
};
};
};
@ -153,33 +154,7 @@
python310Packages.python-lsp-server
];
fonts = {
enableDefaultFonts = true;
fontDir.enable = true;
fonts = with pkgs; [
inter
jetbrains-mono
nerdfonts
noto-fonts-cjk-sans
twemoji-color-font
font-awesome
fira-code-symbols
kochi-substitute
ipafont
];
fontconfig = {
enable = true;
allowBitmaps = true;
defaultFonts = {
monospace = ["JetBrainsMono Nerd Font"];
sansSerif = ["Google Sans Text"];
};
hinting.style = "hintfull";
};
};
nix = {
nix = {
package = pkgs.nixFlakes;
extraOptions = ''
experimental-features = nix-command flakes

View file

@ -6,5 +6,6 @@
./tailscale.nix
./security.nix
./udevd.nix
./fonts.nix
];
}

34
modules/fonts.nix Normal file
View file

@ -0,0 +1,34 @@
{
pkgs,
...
}: {
fonts = {
enableDefaultFonts = false;
fontDir.enable = true;
fonts = with pkgs; [
inter
jetbrains-mono
nerdfonts
noto-fonts-cjk-sans
twemoji-color-font
font-awesome
fira-code-symbols
kochi-substitute
ipafont
];
fontconfig = {
enable = true;
allowBitmaps = true;
defaultFonts = {
monospace = ["JetBrainsMono Nerd Font"];
sansSerif = ["Noto Sans" "Noto Color Emoji"];
emoji = ["Twitter Color Emoji"];
};
hinting.style = "hintfull";
};
};
}