https://github.com/matoking/nix-home
Development environment configuration using Nix + Home Manager
https://github.com/matoking/nix-home
Last synced: about 1 year ago
JSON representation
Development environment configuration using Nix + Home Manager
- Host: GitHub
- URL: https://github.com/matoking/nix-home
- Owner: Matoking
- Created: 2021-11-09T16:40:44.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-03-26T15:00:34.000Z (about 1 year ago)
- Last Synced: 2025-03-26T16:22:40.112Z (about 1 year ago)
- Language: Shell
- Size: 94.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: change-default-shell.sh
Awesome Lists containing this project
README
# nix-home
1. Install [Nix](https://nixos.org/download.html)
2. Install [Home Manager](https://rycee.gitlab.io/home-manager/)
3. Create symlink
```
rm $HOME/.config/nixpkgs/home.nix
ln -s $HOME/git/nix-home/profiles/home.nix $HOME/.config/nixpkgs/home.nix
```
4. Add the following line into `~/.zshrc`
```
source "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
```
5. Just run `home-manager switch` from now on whenever you need to update the current configuration
## Changing default shell
1. Add default shell
```
echo "$HOME/.nix-profile/bin/zsh" | sudo tee -a /etc/shells
```
2. Change default shell
```
chsh -s "$HOME/.nix-profile/bin/zsh"
```
## Automatic installation
Run `bootstrap.sh `. It should work. Maybe.