This commit is contained in:
2025-04-21 11:17:23 +08:00
parent f1df0aae36
commit d97fa21cc4
26 changed files with 620 additions and 423 deletions

View File

@@ -13,11 +13,8 @@
];
};
# Enable home-manager and git
# Enable git
programs = {
# home-manager.enable = true;
# git.enable = true;
git = {
enable = true;
@@ -60,6 +57,25 @@
shellAliases = { };
};
zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
shellAliases = {
la = "ls -la";
ll = "ls -l";
edit = "sudo -e";
update = "sudo nixos-rebuild switch";
};
history.size = 10000;
history.ignoreAllDups = true;
history.path = "$HOME/.zsh_history";
history.ignorePatterns = ["rm *" "pkill *" "cp *"];
};
vim = {
enable = true;
plugins = with pkgs.vimPlugins; [ vim-airline ];

View File

@@ -12,13 +12,14 @@
# inputs.nix-colors.homeManagerModules.default
# You can also split up your configuration and import pieces of it here:
# ./nvim.nix
./core.nix
# ../modules/home/hyprland
./core
../modules/home/hyprland
../modules/home/v2ray
../modules/home/xdg
../modules/home/theme
../modules/home/fcitx
../modules/home/vscode
# ../modules/home/v2ray
../modules/home/xdg.nix
../modules/home/theme.nix
../modules/home/develop
];
home = {
@@ -34,37 +35,17 @@
zip
unzip
lsof
htop
pciutils # lspci etc.
frp
xorg.xhost
# nur.repos.linyinfeng.wemeet
];
sessionVariables = {
XIM = "fcitx";
XIM_PROGRAM = "fcitx";
XMODIFIERS = "@im=fcitx";
};
};
programs = {
bash = {
initExtra = ''
export XIM="fcitx"
export XIM_PROGRAM="fcitx"
export XMODIFIERS="@im=fcitx"
'';
JAVA_HOME = "";
};
};
i18n.inputMethod = {
enabled = "fcitx5";
fcitx5.addons = with pkgs; [
fcitx5-chinese-addons
];
};
# Enable home-manager and git
programs = {