Re:My First Impressions of Nix
by ElectricalUnion on Monday June 19, 2023 @03:37PM
(#36395609)
> NixOS doesn't have, like, a profile switcher to let you switch between work mode and play mode on the same PC.
I thought that `sudo nixos-rebuild switch` was supposed to do exactly that; swap from whatever "state" your PC is on to the result of the nix expresison on "/etc/nixos/configuration.nix"
Re:My First Impressions of Nix
by hamandcheese on Wednesday June 21, 2023 @10:55PM
(#36427500)
Yes, that is how you update your system.
But it would be very unusual to constantly switch between two long-lived configs. I don't see why it wouldn't work, though.
But if you mean distinct computers, then that's just three distinct configs. And it's easy to factor out common bits and use it in all three configs, since you configure things using Nix-the-language.
And if you mean all three at the same time on one PC, that's exactly what I do with my home server.