Fixed font configuration

This commit is contained in:
2025-03-27 14:26:20 +00:00
parent d3e5d8aa89
commit 190bae5036
5 changed files with 17 additions and 49 deletions

View File

@@ -6,18 +6,11 @@
pkgs,
unstablePkgs,
...
}: let
monaspaceFont = pkgs.callPackage ../../modules/monaspice_font.nix {};
in {
}: {
home.file = {
".bashrc" = lib.mkIf (!config.programs.bash.enable) {
source = ./dotfiles/dot_bashrc;
};
"monaspice" = {
source = "${monaspaceFont}/share/fonts/";
target = ".local/share/fonts/";
recursive = true;
};
"nushell" = {
source = ./dotfiles/dot_config/nushell;
target = ".config/nushell";

View File

@@ -6,9 +6,7 @@
pkgs,
unstablePkgs,
...
}: let
monaspaceFont = pkgs.callPackage ../../modules/monaspice_font.nix {};
in {
}: {
home.packages =
(with pkgs; [
alejandra
@@ -22,8 +20,5 @@ in {
lazygit
nixd
nushell
])
++ [
monaspaceFont
];
]);
}

View File

@@ -1,22 +0,0 @@
{
stdenv,
pkgs,
}:
stdenv.mkDerivation {
name = "monaspace-nerd-font";
src = pkgs.fetchurl {
url = "https://github.com/ryanoasis/nerd-fonts/releases/latest/download/Monaspace.tar.xz";
sha256 = "sha256-+uuQeCeioHrmTI+hpcpIzZ5gyQhKJMSNd5owz2vQaTo=";
};
unpackPhase = ''
mkdir -p $out/share/fonts/
chmod +rw $out/share/fonts/
tar -xf $src -C $out/share/fonts/
'';
installPhase = ''
find $out/share/fonts -name '*.ttf' -exec mv {} $out/share/fonts/truetype/ \;
find $out/share/fonts -name '*.otf' -exec mv {} $out/share/fonts/opentype/ \;
'';
}

View File

@@ -165,8 +165,6 @@
xcp
zellij
zoxide
monaspace
nerdfonts
brotli
gcc
gnumake
@@ -263,5 +261,8 @@
enableDefaultPackages = true;
fontDir.enable = true;
fontconfig.defaultFonts.monospace = ["MonaspiceArNerdFontMono"];
packages = with pkgs; [
nerdfonts
];
};
}

View File

@@ -23,20 +23,21 @@
monospace = ["MonaspiceArNerdFontMono"];
};
};
};
# Theming packages
environment.systemPackages = with pkgs; [
# fonts
packages = with pkgs; [
corefonts
liberation_ttf
monaspace
nerdfonts
nerd-font-patcher
noto-fonts
noto-fonts-color-emoji
vistafonts
winePackages.fonts
];
};
# Theming packages
environment.systemPackages = with pkgs; [
# Cursor
hyprcursor
# QT