Currently I have to manually link to my dotfiles, it would be far more efficient if I adopted using GNU
Stow which handles this automatically.
Some useful examples
- How I manage my dotfiles using GNU Stow - mirrors the
structure within the top-level directory (i.e.~/dotfiles/). - Saving dotfiles with GNU Stow and Git | James Lingford - closer
to my current structure with individual directories for each set of configuration files.
I need to choose which structure I'm going to go with...
.
|--/dotfiles/
|
|-- .bashrc
|-- .bash_aliases
|-- ...
|-- .zshrc
...or...
.
|-- dotfiles/
|
|-- bash/
| |-- .bashrc
| |-- .bash_aliases
|-- ...
|-- zsh
|-- .zshrc
NixOS
This shows how to go the full NixOS path and use HomeManager to generate and manage dotfiles, but since I don't yet use
NixOS on every system I use moving my configuration fully to HomeManager isn't something I want to do just yet.
Currently I have to manually link to my dotfiles, it would be far more efficient if I adopted using [GNU
Stow](https://www.gnu.org/software/stow/manual/stow.html) which handles this automatically.
Some useful examples
- [How I manage my dotfiles using GNU Stow](https://tamerlan.dev/how-i-manage-my-dotfiles-using-gnu-stow/) - mirrors the
structure within the top-level directory (i.e. `~/dotfiles/`).
- [Saving dotfiles with GNU Stow and Git | James Lingford](https://www.jameslingford.com/blog/stow-dotfiles/) - closer
to my current structure with individual directories for each set of configuration files.
I need to choose which structure I'm going to go with...
``` bash
.
|--/dotfiles/
|
|-- .bashrc
|-- .bash_aliases
|-- ...
|-- .zshrc
```
...or...
``` bash
.
|-- dotfiles/
|
|-- bash/
| |-- .bashrc
| |-- .bash_aliases
|-- ...
|-- zsh
|-- .zshrc
```
## NixOS
This shows how to go the full NixOS path and use HomeManager to generate and manage dotfiles, but since I don't yet use
NixOS on _every_ system I use moving my configuration fully to HomeManager isn't something I want to do just yet.
- [Managing dotfiles with Nix](https://alex.pearwin.com/2021/07/managing-dotfiles-with-nix/)