Update some configs

This commit is contained in:
xbazzi 2025-02-04 00:21:43 -07:00
parent 49d7f37372
commit 63f76712f5
7 changed files with 66 additions and 39 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@ config-nixvim
result result
hardware-configuration.nix hardware-configuration.nix
*.swp *.swp
# ssh.nix

View File

@ -15,30 +15,30 @@
background = "#17041c"; background = "#17041c";
hide_window_decorations = true; hide_window_decorations = true;
# themeFile = "Alucard"; # themeFile = "Alucard";
# symbol_map = symbol_map =
# let let
# mappings = [ mappings = [
# "U+23FB-U+23FE" "U+23FB-U+23FE"
# "U+2B58" "U+2B58"
# "U+E200-U+E2A9" "U+E200-U+E2A9"
# "U+E0A0-U+E0A3" "U+E0A0-U+E0A3"
# "U+E0B0-U+E0BF" "U+E0B0-U+E0BF"
# "U+E0C0-U+E0C8" "U+E0C0-U+E0C8"
# "U+E0CC-U+E0CF" "U+E0CC-U+E0CF"
# "U+E0D0-U+E0D2" "U+E0D0-U+E0D2"
# "U+E0D4" "U+E0D4"
# "U+E700-U+E7C5" "U+E700-U+E7C5"
# "U+F000-U+F2E0" "U+F000-U+F2E0"
# "U+2665" "U+2665"
# "U+26A1" "U+26A1"
# "U+F400-U+F4A8" "U+F400-U+F4A8"
# "U+F67C" "U+F67C"
# "U+E000-U+E00A" "U+E000-U+E00A"
# "U+F300-U+F313" "U+F300-U+F313"
# "U+E5FA-U+E62B" "U+E5FA-U+E62B"
# ]; ];
# in in
# (builtins.concatStringsSep "," mappings) + " Symbols Nerd Font"; (builtins.concatStringsSep "," mappings) + " Symbols Nerd Font";
}; };
}; };
} }

View File

@ -1,4 +1,5 @@
{ inputs, pkgs, lib, config, ... }: { inputs, pkgs, lib, config, ... }:
{ {
@ -9,6 +10,14 @@
syntaxHighlighting.enable = true; syntaxHighlighting.enable = true;
initExtra = '' initExtra = ''
bindkey -e bindkey -e
function y() {
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
yazi "$@" --cwd-file="$tmp"
if cwd="$(command cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
builtin cd -- "$cwd"
fi
rm -f -- "$tmp"
}
''; '';
history.size = 10000; history.size = 10000;
history.ignoreAllDups = true; history.ignoreAllDups = true;
@ -28,6 +37,8 @@
hms = "home-manager switch --flake ${flakePath}"; hms = "home-manager switch --flake ${flakePath}";
config = "nvim ~/nix/configuration.nix"; config = "nvim ~/nix/configuration.nix";
homecfg = "nvim ~/nix/home.nix"; homecfg = "nvim ~/nix/home.nix";
vi = "vim ";
sudo = "sudo ";
}; };
# plugins = [ # plugins = [

View File

@ -54,21 +54,6 @@
# Enable CUPS to print documents. # Enable CUPS to print documents.
services.printing.enable = true; services.printing.enable = true;
fonts.packages = with pkgs; [
nerd-fonts.fira-code
nerd-fonts.sauce-code-pro
# nerd-fonts._Oxproto
nerd-fonts.space-mono
nerd-fonts.droid-sans-mono
noto-fonts-cjk-sans
noto-fonts-emoji
liberation_ttf
fira-code-symbols
mplus-outline-fonts.githubRelease
dina-font
proggyfonts
] ++ builtins.filter lib.attrsets.isDerivation (builtins.attrValues pkgs.nerd-fonts);
# Zsh enable for all users # Zsh enable for all users
programs.zsh = { programs.zsh = {
enable = true; enable = true;

View File

@ -4,6 +4,8 @@
imports = imports =
[ [
./configuration.nix ./configuration.nix
./fonts.nix
./ssh.nix
# ./stylix.nix # ./stylix.nix
./gnome.nix ./gnome.nix
./yazi.nix ./yazi.nix

19
system/fonts.nix Normal file
View File

@ -0,0 +1,19 @@
{ config, pkgs, ... }:
{
fonts.packages = with pkgs; [
nerd-fonts.fira-code
nerd-fonts.sauce-code-pro
# nerd-fonts._Oxproto
nerd-fonts.space-mono
nerd-fonts.droid-sans-mono
noto-fonts-cjk-sans
noto-fonts-emoji
liberation_ttf
fira-code-symbols
mplus-outline-fonts.githubRelease
dina-font
proggyfonts
monaspace
] ++ builtins.filter lib.attrsets.isDerivation (builtins.attrValues pkgs.nerd-fonts);
}

9
system/ssh.nix Normal file
View File

@ -0,0 +1,9 @@
{ config, pkgs, ... }:
{
programs.ssh.extraConfig = ''
Host school
HostName school
IdentityFile ~/.ssh/lan_ed25519
'';
}