This repository contains my personal configuration for NixOS and macOS systems, managed using Nix Flakes, nix-darwin, and home-manager.
This setup aims to provide a declarative and reproducible environment across different machines. It includes:
- System-level configurations (
nix-darwin
) - User-specific configurations (
home-manager
) - Integration with Homebrew (
nix-homebrew
)
Ensure Nix is installed with Flakes support enabled. You can use the Determinate Systems Nix Installer for a straightforward installation:
make nix-install
Remember to restart your shell after installation.
-
Clone the repository:
git clone https://github.com/khaykingleb/dotfiles.git \ && mkdir -p ~/.config \ && mv dotfiles ~/.config/dotfiles
-
Apply the configuration:
Use the
Makefile
target corresponding to your system hostname (defined inflake.nix
). For instance,make nix-darwin-apply-macbook-pro-m4