A dotfile manager with support for host specific configuration.
Use the nix package manager to install dotm.
nix profile install github:winpat/dotm
Add a .dotrc file to your dotfiles repository. The dotrc file describes which files should be linked depending on the hostname. If you want to link a file on every host, configure it under the "all" key:
all:
- .emacs
- .tmux.conf
- .bashrc
laptop|desktop:
- .config/dunst
laptop:
- .config/i3
- nixos/laptop.nix -> /etc/nixos/configuration.nix
desktop:
- .config/openbox
- nixos/desktop.nix -> /etc/nixos/configuration.nix
Then simply run dotm in the same directory:
dotm
You can spawn an environment with all dependencies using nix-shell:
nix develop
To run the suite, simply launch pytest through the make target:
nix develop --check
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.