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

Sergiu Ivanov sivanov at colimite.fr
Thu Apr 6 16:58:01 CEST 2017


Hi Vince,

Thus quoth  nixos at vince.lol  at 14:12 on Thu, Apr 06 2017:
>
> I acidentally removed my /etc/nixos/configuration.nix is there any way
> I can get it back?

Citing directly from:

  http://stackoverflow.com/questions/28603773/recover-accidentally-deleted-configuration-nix-file

  '''
  system.copySystemConfiguration

  If enabled, copies the NixOS configuration file $NIXOS_CONFIG (usually
  /etc/nixos/configuration.nix) to the system store path.

  Type:"boolean"

  Default:false

  Declared by:  <nixpkgs/nixos/modules/system/activation/top-level.nix>
  '''

Do you happen to have this option set to true?


/me goes and sets it to true on his system

--
Sergiu
-------------- 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/b5e1de4a/attachment-0001.sig>


More information about the nix-dev mailing list