https://github.com/allancalix/dotfiles
Dotfiles for *NIX environments
https://github.com/allancalix/dotfiles
dotfiles fish linux shell tmux vim
Last synced: about 2 months ago
JSON representation
Dotfiles for *NIX environments
- Host: GitHub
- URL: https://github.com/allancalix/dotfiles
- Owner: allancalix
- Created: 2017-07-16T20:20:14.000Z (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2025-04-01T08:28:33.000Z (about 1 year ago)
- Last Synced: 2025-04-01T09:29:07.032Z (about 1 year ago)
- Topics: dotfiles, fish, linux, shell, tmux, vim
- Language: Shell
- Homepage:
- Size: 626 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dotfiles
Contains configuration for my development machines that uses [home-manager] to manage installing applications and setting up configuration for those applications. Some applications that are setup using home manager in this repository include:
- [Neovim](https://neovim.io/)
- [Starship](https://starship.rs/)
- [Fish](https://fishshell.com/)
## Initial setup
1. Install [home-manager]
2. Perform initial install and configure the system
```bash
./update.sh
```
## Updating the system configuration
To update the system configuration just modify files under `./nix` and create a new generation with:
```bash
./update.sh
```
## How-to
### Install programs for development
```nix
home.packages = with pkgs; [
ripgrep
fd
eza
gh
]
```
### Install Vim plugins
```nix
programs.neovim = {
...
plugins = with pkgs.vimPlugins; [
vim-surround
tabular
vim-commentary
hop-nvim
}
```
### Define shell environment variables
```nix
home.sessionVariables = {
EDITOR = "nvim";
GIT_EDITOR = "nvim -u ~/.config/nvim/minimal.vim";
PAGER = "less -RFX";
}
```
[home-manager]: https://nix-community.github.io/home-manager/
## Mac OS
Mac system configuration is not managed by home-manager. The configuration is stored in the [script/macos](./script/macos) file and executed with the `./script/bootstrap` script.
## References
People sharing how they setup and configure their systems has been incredibly inspirational. Below are some references to other setups that informed some choices made here.
- [NixOS Configuration](https://github.com/mitchellh/nixos-config)
- [Mathias Bynens' macOS Setup](https://mathiasbynens.github.io/dotfiles/macos/)