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

Alexey Shmalko rasen.dubi at gmail.com
Thu Apr 6 18:03:22 CEST 2017


nixos at vince.lol writes:

> Hi all, 
>
> I acidentally removed my /etc/nixos/configuration.nix is there any way I can get it back? 

If you have enabled system.copySystemConfiguration option, you can find
your config at /var/run/current-system/configuration.nix

Though, the option is disabled by default, so it's unlikely that will help
you this time :(

Also, it only copies the main configuration file and not any included
files.

Regards,
Alexey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 487 bytes
Desc: not available
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20170406/b66bc2ee/attachment.sig>


More information about the nix-dev mailing list