Reorganize configuration into modular directory structure

- Create modules/ directory for Nix configuration modules
- Create config/ directory for configuration files
- Move nvim.nix, tmux.nix, zsh.nix to modules/
- Move p10k.zsh to config/
- Update flake.nix import paths to reference new structure
- Update zsh.nix p10k.zsh path reference
- Update README.md architecture documentation
- Keep tmux.sh at root for easy accessibility

This provides better separation between Nix modules and config files
while maintaining a clean, scalable structure.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Yan Lin 2025-07-26 22:07:28 +02:00
parent 2295aa9131
commit 539ba9fef7
6 changed files with 11 additions and 9 deletions

View file

@ -27,11 +27,13 @@ home-manager switch --flake github:Logan-Lin/nix-config#yanlin
``` ```
. .
├── flake.nix # Main flake configuration and package definitions ├── flake.nix # Main flake configuration and package definitions
├── nvim.nix # Neovim configuration with plugins and keymaps ├── tmux.sh # Tmux session automation script
├── tmux.nix # Tmux setup with vim-like navigation ├── modules/ # Nix configuration modules
├── zsh.nix # Zsh with Powerlevel10k and modern CLI tools │ ├── nvim.nix # Neovim configuration with plugins and keymaps
├── p10k.zsh # Powerlevel10k theme configuration (managed by Nix) │ ├── tmux.nix # Tmux setup with vim-like navigation
└── tmux.sh # Tmux session automation script │ └── zsh.nix # Zsh with Powerlevel10k and modern CLI tools
└── config/ # Configuration files
└── p10k.zsh # Powerlevel10k theme configuration
``` ```
## 🛠️ Software Configurations ## 🛠️ Software Configurations

View file

@ -30,9 +30,9 @@
homeConfiguration = { pkgs, ... }: { homeConfiguration = { pkgs, ... }: {
imports = [ imports = [
nixvim.homeManagerModules.nixvim nixvim.homeManagerModules.nixvim
./nvim.nix ./modules/nvim.nix
./tmux.nix ./modules/tmux.nix
./zsh.nix ./modules/zsh.nix
]; ];
home.username = "yanlin"; home.username = "yanlin";

View file

@ -94,5 +94,5 @@
}; };
# Manage Powerlevel10k configuration # Manage Powerlevel10k configuration
home.file.".p10k.zsh".source = ./p10k.zsh; home.file.".p10k.zsh".source = ../config/p10k.zsh;
} }