mirror of
https://github.com/Cian-H/My_NixOS_Config.git
synced 2025-12-22 15:01:57 +00:00
Fixed font configuration
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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
|
||||
];
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -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/ \;
|
||||
'';
|
||||
}
|
||||
@@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -23,20 +23,21 @@
|
||||
monospace = ["MonaspiceArNerdFontMono"];
|
||||
};
|
||||
};
|
||||
|
||||
packages = with pkgs; [
|
||||
corefonts
|
||||
liberation_ttf
|
||||
nerdfonts
|
||||
nerd-font-patcher
|
||||
noto-fonts
|
||||
noto-fonts-color-emoji
|
||||
vistafonts
|
||||
winePackages.fonts
|
||||
];
|
||||
};
|
||||
|
||||
# Theming packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
# fonts
|
||||
corefonts
|
||||
liberation_ttf
|
||||
monaspace
|
||||
nerdfonts
|
||||
nerd-font-patcher
|
||||
noto-fonts
|
||||
noto-fonts-color-emoji
|
||||
vistafonts
|
||||
winePackages.fonts
|
||||
# Cursor
|
||||
hyprcursor
|
||||
# QT
|
||||
|
||||
Reference in New Issue
Block a user