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 = imports =
[ [
./hardware-configuration.nix ./hardware-configuration.nix

View file

@ -1,6 +1,8 @@
{ config, pkgs, inputs, ... }:
{ {
config,
pkgs,
...
}: {
imports = imports =
[ [
./hardware-configuration.nix ./hardware-configuration.nix
@ -26,10 +28,14 @@
virtualisation.libvirtd.enable = true; virtualisation.libvirtd.enable = true;
networking.hostName = "tsuki"; networking = {
networkmanager.enable = true;
networking.networkmanager.enable = true; nameservers = [ "192.168.1.45" ];
networking.nameservers = [ "192.168.1.45" ]; hostName = "tsuki";
firewall = {
enable = true;
};
};
# pihole # pihole
environment.etc = { environment.etc = {
@ -61,11 +67,6 @@
videoDrivers = [ "nvidia" ]; videoDrivers = [ "nvidia" ];
layout = "us"; layout = "us";
xkbVariant = ""; xkbVariant = "";
displayManager = {
lightdm = {
enable = false;
};
};
}; };
}; };
@ -153,33 +154,7 @@
python310Packages.python-lsp-server python310Packages.python-lsp-server
]; ];
fonts = { nix = {
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 = {
package = pkgs.nixFlakes; package = pkgs.nixFlakes;
extraOptions = '' extraOptions = ''
experimental-features = nix-command flakes experimental-features = nix-command flakes

View file

@ -6,5 +6,6 @@
./tailscale.nix ./tailscale.nix
./security.nix ./security.nix
./udevd.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";
};
};
}