[Nix-dev] /etc/nixos/configuration.nix not versioned?
phreedom at yandex.ru
phreedom at yandex.ru
Fri Sep 16 18:48:44 CEST 2016
On Friday, September 16, 2016 09:13:27 Wink Saville wrote:
> As a newbie I was playing around and last night I rolled back to an
> older configuration and realized that the configuration.nix file
> didn't rollback. I can now realize that configuration.nix has nothing
> to do with booting or running the system and it only builds the
> system.
>
> But at the moment I have 20 variations of my system in
> /boot/loader/entries/* but only the "latest"
> /etc/nixos/configuration.nix. So how are people managing
> configuration.nix files and keeping them 'synchronized' with /boot/**/
> in particular /boot/loader/entries/* ?
>
> What I've just done is put /etc/nixos into a git repository, but that
> puts the burden on me to keep it synchronized with the
> /boot/loader/entries. Hopefully there is a better way.
>
> -- Wink
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
A bit hacky solution: system.copySystemConfiguration = true;
A more formal solution would be to version all your stuff yourself with nixpkgs
as a submodule if necessary.
More information about the nix-dev
mailing list