edit fonts (remove downloading all fonts)

This commit is contained in:
2025-11-18 15:22:56 +03:00
parent ccc2cdab20
commit a1237f95e0
2 changed files with 71 additions and 22 deletions
+63 -17
View File
@@ -1,26 +1,53 @@
{ config, pkgs, lib, ... }:
{
config,
pkgs,
lib,
...
}:
{
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 14d";
};
networking.nameservers = [ "8.8.8.8" "1.1.1.1" ];
networking.networkmanager.insertNameservers = [ "1.1.1.1" "8.8.8.8" ];
networking.nameservers = [
"8.8.8.8"
"1.1.1.1"
];
networking.networkmanager.insertNameservers = [
"1.1.1.1"
"8.8.8.8"
];
networking.firewall.enable = false;
programs.firefox.enable = true;
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [ kitty amnezia-vpn lenovo-legion ];
environment.systemPackages = with pkgs; [
kitty
amnezia-vpn
lenovo-legion
];
# TODO: Добавить настройку вентиляторов
security.sudo.extraRules = [{
security.sudo.extraRules = [
{
users = [ "ALL" ];
commands = [{
commands = [
{
command = "/run/current-system/sw/bin/AmneziaVPN-service";
options = [ "NOPASSWD" ];
}];
}];
}
];
}
];
programs.neovim = {
enable = true;
@@ -37,12 +64,30 @@
colorscheme blue
endif
'';
packages.myVimPackage = with pkgs.vimPlugins; { start = [ ctrlp ]; };
packages.myVimPackage = with pkgs.vimPlugins; {
start = [ ctrlp ];
};
};
};
fonts.packages = builtins.filter lib.attrsets.isDerivation
(builtins.attrValues pkgs.nerd-fonts);
# fonts.packages = builtins.filter lib.attrsets.isDerivation (builtins.attrValues pkgs.nerd-fonts);
fonts.packages = with pkgs; [
nerd-fonts.jetbrains-mono
# from example
nerd-fonts.fira-code
nerd-fonts.droid-sans-mono
noto-fonts
noto-fonts-cjk-sans
noto-fonts-color-emoji
liberation_ttf
fira-code
fira-code-symbols
mplus-outline-fonts.githubRelease
dina-font
proggyfonts
];
fonts.enableDefaultPackages = true;
programs.zsh.enable = true;
@@ -51,18 +96,19 @@
plymouth = {
enable = true;
theme = "lone";
themePackages = with pkgs;
[
themePackages = with pkgs; [
(adi1090x-plymouth-themes.override { selected_themes = [ "lone" ]; })
];
};
consoleLogLevel = 3;
initrd.verbose = false;
kernelModules = [ "tun" "lenovo-legion-module" ]; # for VPN
kernelModules = [
"tun"
"lenovo-legion-module"
]; # for VPN
kernelPackages = pkgs.linuxPackages_latest;
extraModulePackages = with config.boot.kernelPackages;
[ lenovo-legion-module ];
extraModulePackages = with config.boot.kernelPackages; [ lenovo-legion-module ];
kernelParams = [
"quiet"
"splash"
+3
View File
@@ -12,4 +12,7 @@ rm -rf /etc/nixos.bak.*
echo "Removing all backups in $HOME/.config/home-manager..."
rm -rf $HOME/.config/home-manager.bak.*
echo "Run nix-collect-garbage"
nix-collect-garbage
echo "Done!"