I’m sure the subject has come up plenty but I have a couple of questions that I’ve not been able to find the answer to.
I’ve decided to keep my dotfiles in git so my configurations can easily be pulled onto a variety of machines. I have some NixOS and a bunch of Ubuntu so I think it’s probably better to keep the repository separate from my NixOS. I have 2 questions.
-
Say I want to manage the file another way, how do I tell NixOS not to manage a file. Say ~/.ssh/config for example.
-
Can I, in Nix, import a file’s contents from an external git repository or would it have to be in the same repository? (if it is relevant I am using flakes and home manager managed centrally with my main NixOS configuration)