7 hours ago · Tech · hide

So far with NixOS I’ve been making changes to my configuration.nix and then running nixos-rebuild switch and seeing what happens. This has worked out so far, but I’ve just swapped my home server over to NixOS, which means breaking it could have consequences. Switching my home server means I now have two separate Nix configs, and I’d really like them to be merged together, so all the common bits aren’t duplicated a bunch of times. I could just try to refactor the Nix code and assume I’d got it right, but I really want to be sure that I haven’t messed something up. Obviously if I mess it up really badly it won’t build, but I’m more worried about accidentally removing all my SSH authorised keys, or something like that. Thankfully there is a simple solution. The easiest thing you can do is build both versions and check if they point to the same path in the Nix store, but that’s a bit of a hassle to do manually. It’s also only good for verifying changes are identical, what do you do if…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town