This issue is likely to trip most newcomers. Maybe nixos-install should create a git repo in /etc/nixos by default. And then "nixos build" automatically commit on invocation.
On Mon, 10 Apr 2017, 04:41 Ryan Trinkle, <ryan.trin...@gmail.com> wrote: > Jeaye, > > I totally agree! One really interesting approach to this that I've seen > is the 'pass' password manager, which can automatically handle the use of > git for passwords. I wonder if it would be feasible to do this for nixos > as well, so that beginners (who might not be familiar with git) would > automatically be doing "the right" (or at least "a reasonable") thing > without needing to learn about it. > > > Ryan > > On Sun, Apr 9, 2017 at 11:10 PM, Jeaye <cont...@jeaye.com> wrote: > > On Thu, Apr 06, 2017 at 04:12:03PM +0200, ni...@vince.lol wrote: > > Hi all, > > > > I acidentally removed my /etc/nixos/configuration.nix is there any way I > can > > get it back? > > > > Sincerely, > > Vince > > I know you've sorted this out now, but I think it's worthwhile to mention > that one of the benefits of having a text-based, declarative configuration > for your OS is that you can very easily track it in git. NixOS will handle > reverts for you, on an OS level, and git can handle them for you on a > configuration level. > > If you don't want to host the configurations publicly, on Github or > similar, you could do so privately, on Bitbucket or similar. > > Best of luck. > > _______________________________________________ > nix-dev mailing list > nix-dev@lists.science.uu.nl > http://lists.science.uu.nl/mailman/listinfo/nix-dev > > > _______________________________________________ > nix-dev mailing list > nix-dev@lists.science.uu.nl > http://lists.science.uu.nl/mailman/listinfo/nix-dev >
_______________________________________________ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev