Use lib.assertOneOf and lib.assertMsg
According to https://github.com/NixOS/rfcs/blob/master/rfcs/0166-nix-formatting.md