Yes, it's a fantastic idea that, like too many others, has a working
implementation bitrotting in a PR.
But I have an idea to end this ;-). Coming soon :-D.
G.
On 06/04/17 20:54, Ryan Trinkle wrote:
Layus,
That does sound fantastic! Do you think that PR has a reasonable
chance of landing in the near future?
Ryan
On Thu, Apr 6, 2017 at 12:12 PM, Guillaume Maudoux (Layus)
<[email protected] <mailto:[email protected]>> wrote:
Hi,
system.copySystemConfiguration is far from perfect. As soon as you
modularize your config, you will miss all the other files.
If you want a correct system.copySystemConfiguration, you really
need https://github.com/NixOS/nix/pull/709
<https://github.com/NixOS/nix/pull/709>.
It allows you to snapshot all the sources of a nix derivation, not
just one file.
I tested it back then, and it worked pretty well.
-- Layus.
On 06/04/17 17:46, [email protected] <mailto:[email protected]> 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
<https://gist.github.com/awesomefireduck/c763e168a62a0ef559a1fb9473261459>
And my (yet untested) attempt at PCI passthrough here:
https://gist.github.com/awesomefireduck/1be07805081a4d7a51c527e452b87b26
<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
<[email protected]> <mailto:[email protected]> wrote:
Hi Vince,
Thus quoth [email protected] <mailto:[email protected]> 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
<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
[email protected] <mailto:[email protected]>
http://lists.science.uu.nl/mailman/listinfo/nix-dev
<http://lists.science.uu.nl/mailman/listinfo/nix-dev>
_______________________________________________ nix-dev mailing
list [email protected]
<mailto:[email protected]>
http://lists.science.uu.nl/mailman/listinfo/nix-dev
<http://lists.science.uu.nl/mailman/listinfo/nix-dev>
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev