Do people tend to take the “GitHub dotfiles” approach to backing up /etc/nixos/configuration.nix
, ~/.config/nixpkgs/config.nix
, Home Manager? These files are in disparate directories. Is there an elegant alternative that, say, hooks into switch
generations and -iA
calls and stores these remotely?
I personally store them all in one repo and check it out to /etc/nixos
. Other files like config.nix I softlink from there manually when installing on a new machine.
1 Like
I have been using YADM to deal with all my dotfiles, and I find it works pretty well for me. I maintain branches for each of my active machines, and though I don’t know if there’s a better method, it’s not bad.
I recently asked about keeping NixOS configs in source control in this topic. I got several good answers, including a link to michaelpj’s configs, which I adopted for my own use in the end.
roni
1 Like