[Nix-dev] [Help] Accidentally removed configuration.nix

zimbatm zimbatm at zimbatm.com
Mon Apr 10 10:02:54 CEST 2017


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.trinkle at 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 <contact at jeaye.com> wrote:
>
> On Thu, Apr 06, 2017 at 04:12:03PM +0200, nixos at 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 at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20170410/15cdcd9a/attachment.html>


More information about the nix-dev mailing list