refactor: organize hosts configs into dedicated directory

- Move and rename host-specific configurations (e.g., wsl to hosts/wsl)
- Add home.nix files for mbp and wsl, importing common modules
- Update mbp flake.nix path to new hosts/mbp/configuration.nix
- Integrate home-manager for user environments on macOS/WSL
- Update flake.lock inputs (nixpkgs, home-manager, homebrew) for latest versions
- Add README.md with project overview and setup instructions

This restructures the repo for multi-host support, improves modularity, and ensures reproducible builds with updated dependencies.
This commit is contained in:
Den Afanasyev 2025-10-12 00:38:28 +03:00
parent 42b2706505
commit 665a701aaa
21 changed files with 331 additions and 418 deletions

31
modules/common.nix Normal file
View file

@ -0,0 +1,31 @@
{ pkgs, lib, ... }:
{
# Define home options directly if this is a standalone home.nix
# or within config if it's a module
home = {
packages = with pkgs; [
age
ansible
bat
deploy-rs
fzf-preview
kubectl
kubectx
kubernetes-helm
nerd-fonts.jetbrains-mono
nixfmt-rfc-style
opentofu
sops
talosctl
teleport
zsh-forgit
zsh-fzf-history-search
zsh-fzf-tab
rclone
];
stateVersion = "25.11";
};
#nixpkgs.config.allowUnfree = true; # It's better to put this in configuration.nix or a more specific place if it's only meant for certain hosts.
}