- Ensure your system has curl and git installed.
- This script will automatically install Nix if it's not already installed.
Simply execute the following command, and everything will be done automatically:
sh <(curl -L https://raw.githubusercontent.com/kevin1sMe/dev-with-nix/main/install)
- Check if Nix is Installed: If already installed, skip installation; otherwise, it will be automatically installed.
- Configure Nix: Enable the Flakes feature in Nix.
- Clone the Project Repository: Clone the
dev-with-nix
repository locally. - Configure Personal Environment: Copy
config-templ.toml
to~/.dev-with-nix.toml
and edit as needed.
After running the install script, follow these steps as prompted:
- Activate Nix Configuration: Execute
source ~/.nix-profile/etc/profile.d/nix.sh
. - Edit Configuration File: Modify
~/.dev-with-nix.toml
. - Build Environment: In the
dev-with-nix
directory, runnix run nixpkgs#home-manager -- switch --flake .#dev --impure
. - Start Session: Use
zsh
.
This configuration enhances the Zsh experience, highly recommended to try. To set it as the default Shell, execute:
echo "exec zsh" >> ~/.bashrc
- Q: Encounter 'API rate limit exceeded' error?
- A: The company network may limit access to GitHub, try again later.
- Q: Environment variables changes not taking effect?
- A: Completely close the session and log in again. It seems to be related to
__HM_ZSH_SESS_VARS_SOURCED
, still investigating.
- A: Completely close the session and log in again. It seems to be related to