From 59531934d2177d961515fff15f172ece44a7cc5a Mon Sep 17 00:00:00 2001 From: thek4n Date: Thu, 13 Aug 2026 19:49:22 +0300 Subject: [PATCH] add fonts to nix --- etc/hosts | 14 -------------- hosts/default/configuration.nix | 4 ++++ install-hooks/font/pre-install | 13 ------------- 3 files changed, 4 insertions(+), 27 deletions(-) delete mode 100644 etc/hosts delete mode 100755 install-hooks/font/pre-install diff --git a/etc/hosts b/etc/hosts deleted file mode 100644 index 725243c..0000000 --- a/etc/hosts +++ /dev/null @@ -1,14 +0,0 @@ - -# Local -## 192.168.50.1 router.home -## 192.168.50.2 router2.home - -## 192.168.50.10 files.home -## 192.168.50.11 builder.home -## 192.168.50.12 printer.home - -## 192.168.50.20 workstation.home -## 192.168.50.21 phone.home - -# Network -# 91.91.91.91 home diff --git a/hosts/default/configuration.nix b/hosts/default/configuration.nix index ef77c4f..4e3ed7a 100644 --- a/hosts/default/configuration.nix +++ b/hosts/default/configuration.nix @@ -27,6 +27,10 @@ docker httpie home-manager ]; + fonts.packages = with pkgs; [ + (nerdfonts.override { fonts = [ "FiraCode" ]; }) + ]; + programs.zsh = { enable = true; enableCompletion = true; diff --git a/install-hooks/font/pre-install b/install-hooks/font/pre-install deleted file mode 100755 index 4e3f8ca..0000000 --- a/install-hooks/font/pre-install +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -set -e - -sub="${HOME}/.local/share/fonts" -mkdir -p "${sub}" - -cd "${sub}" -wget -c -O FiraCode.zip 'https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/FiraCode.zip' -unzip FiraCode.zip -d "${sub}" -git clone 'https://github.com/powerline/fonts.git' --depth=1 -cd fonts -./install.sh