3 ms·
I used to use a git repo of dotfiles which used a script to symlink into $HOME: https://github.com/RyanGibb/dotfiles https://github.com/RyanGibb/dotfiles B
by ryangibb 4y ago
I used to use a git repo of dotfiles which used a script to symlink into $HOME:
https://github.com/RyanGibb/dotfiles https://github.com/RyanGibb/dotfiles
But there were a few problems with it:
- installed packages needed to be managed separately (the mechanisms for which varied by platform)
- managing differing configs for different machines (e.g. headless servers, hardware quirks) was done by managing different branches of this repo and rebasing, which was a pain
- it was generally brittle and hard to change
I've started to use https://nixos.org/ https://nixos.org/ and it's been like night and day:
https://github.com/RyanGibb/nixos/ https://github.com/RyanGibb/nixos/
My config is version controlled, reproducible, manages packages, and is very composable.
Using the nix package manager and https://github.com/nix-community/home-manager https://github.com/nix-community/home-manager this should work on other Linux distributions, MacOS, and even Windows Subsystem for Linux. Although I haven't tried this for myself yet.