added: google sans code font (nerds font)

This commit is contained in:
2025-12-15 23:45:04 +00:00
parent a49d1e27bd
commit b99614fddf
5 changed files with 31 additions and 28 deletions

10
flake.lock generated
View File

@@ -289,15 +289,15 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1708808339, "lastModified": 1765841187,
"narHash": "sha256-D0mBcKoDjL6D0rSp1Xw0X5PsHDDvuzV77R0FcLM6RoE=", "narHash": "sha256-EDNulMxDxJfhk9cJdYv0KPU1hAKrTcMbSFUcOFhgBws=",
"owner": "libc", "owner": "Doloro1978",
"repo": "nix-nerd-fonts-patcher", "repo": "nix-nerd-fonts-patcher",
"rev": "2eb143b6b9fa0a937b267233c374bb403410a09a", "rev": "eaf93a869699796be559fbaa2b4351c53d7f4cf2",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "libc", "owner": "Doloro1978",
"repo": "nix-nerd-fonts-patcher", "repo": "nix-nerd-fonts-patcher",
"type": "github" "type": "github"
} }

View File

@@ -47,7 +47,7 @@
nixpkgs-gamescope = { nixpkgs-gamescope = {
url = "github:Nixos/nixpkgs?rev=8fcb6f1c4948305af52d19f887b89011ee2c080d"; url = "github:Nixos/nixpkgs?rev=8fcb6f1c4948305af52d19f887b89011ee2c080d";
}; };
font-patcher.url = "github:libc/nix-nerd-fonts-patcher"; font-patcher.url = "github:Doloro1978/nix-nerd-fonts-patcher";
}; };
outputs = outputs =
inputs@{ inputs@{

View File

@@ -26,12 +26,11 @@
nerd-fonts.jetbrains-mono nerd-fonts.jetbrains-mono
material-design-icons material-design-icons
material-symbols material-symbols
(inputs.font-patcher.lib.patchFont { googlesans-code
font = pkgs.googlesans-code; # (inputs.font-patcher.lib.patchFont {
name = "Google Sans Code Nerd Font - Regular"; # font = pkgs.googlesans-code;
subfamily = "Regular"; # name = "Google Sans Code Nerd Font";
inherit system; # })
})
nerd-fonts.caskaydia-cove nerd-fonts.caskaydia-cove
nerd-fonts.noto nerd-fonts.noto
noto-fonts-cjk-sans noto-fonts-cjk-sans

View File

@@ -151,21 +151,25 @@ in
fonts = { fonts = {
enableDefaultPackages = true; enableDefaultPackages = true;
packages = with pkgs; [ packages =
nerd-fonts.jetbrains-mono with pkgs;
material-design-icons [
material-symbols nerd-fonts.jetbrains-mono
(inputs.font-patcher.lib.patchFont { material-design-icons
font = pkgs.googlesans-code; material-symbols
name = "Google Sans Code Nerd Font - Regular"; googlesans-code
subfamily = "Regular"; nerd-fonts.caskaydia-cove
inherit system; nerd-fonts.noto
}) noto-fonts-cjk-sans
nerd-fonts.caskaydia-cove noto-fonts-cjk-serif
nerd-fonts.noto ]
noto-fonts-cjk-sans ++ [
noto-fonts-cjk-serif (inputs.font-patcher.lib.patchFont {
]; font = "${pkgs.googlesans-code}/share/fonts/googlesans-code/GoogleSansCode[wght].ttf";
name = "Google Sans Code Nerd Font";
inherit system;
})
];
fontDir.enable = true; fontDir.enable = true;
}; };

View File

@@ -50,7 +50,7 @@ in
main = { main = {
term = "xterm-256color"; term = "xterm-256color";
font = "CaskaydiaCove Nerd Font Mono:size=12"; font = "Google Sans Code Nerd Font:size=11";
}; };
mouse = { mouse = {