[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Seeking guidance regarding system roll-back and switch-generation
From: |
Tobias Geerinckx-Rice |
Subject: |
Re: Seeking guidance regarding system roll-back and switch-generation |
Date: |
Sun, 17 Jul 2016 17:27:15 +0200 |
User-agent: |
Roundcube Webmail/1.1.2 |
Ahoy Chris,
Just one aside, for context:
(And to softly nudge people into the right™ direction of activation
scripts, of course. ;-)
On 2016-07-17 11:22, Chris Marusich wrote:
However, it may not be necessary to generate a
"switch-to-configuration"
script at all. Instead, what if we just stored the operating system
configuration file in a well known location within each system
generation?
NixOS offers this option. I've forgot the name, because its utility is
so limited, and its main use is to confuse people on IRC.
All it does is copy /etc/nixos/configuration.nix to the store. That's
it. All your imports are now broken, if they pointed to a relative path
that doesn't exist in the store, or impure, if they pointed to an
absolute
path that wasn't immutable. This breaks all but the most trivial (or
unmaintainable) set-ups. Even the NixOS installer creates a multi-file
configuration by default.
That no-one has bothered to script a solution probably means something.
Kind regards,
T G-R