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

Ryan Trinkle ryan.trinkle at gmail.com
Thu Apr 6 17:54:57 CEST 2017


Hi Vince,

I do happen to know why it's set to false by default!  I sent a PR to
change it to true a while back, and got some good explanations for why
that's a bad idea here: https://github.com/NixOS/nixpkgs/pull/16922

However, I'm now wondering if it might make sense to add
"system.copySystemConfiguration" to nixos-generate-config's default output;
I added a comment to that PR explaining the idea.


Best,
Ryan

On Thu, Apr 6, 2017 at 11:46 AM, <nixos at vince.lol> wrote:

> No I don't have `system.copySystemConfiguration=true` set :-(
> Luckily I documented my recent efforts in some gists.
> I managed to install NixOS on ZFS here: https://gist.github.com/
> awesomefireduck/c763e168a62a0ef559a1fb9473261459
> And my (yet untested) attempt at PCI passthrough here:
> https://gist.github.com/awesomefireduck/1be07805081a4d7a51c527e452b87b26
> There is still some missing, but nothing I can't handle, I guess.
> This is a great time to enable my ZFS snapshots... :-/
>
> Does anyone know why `system.copySystemConfiguration` is set to false by
> default? It seems like it would be better to default this to true, right?
> Or at least have this listed in the generated config?
> (`nixos-generate-config`)
>
> Anyway, I'll be okay, thanks folks!!
>
> Sincerely,
> Vince
>
> On Thursday, April 6, 2017 4:58 PM, Sergiu Ivanov <sivanov at colimite.fr>
> wrote:
>
>
>
> 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
>
>
> _______________________________________________
> 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/20170406/e11fcb60/attachment.html>


More information about the nix-dev mailing list