Drawing tablet orientation resets frequently

On NixOS, without home manager, setting mouse & tablet options other than orientation correctly applies and carries over sessions in the kcminputrc file. Orientation also saves into this file correctly, but is reset to 0 when leaving the session, and when using keybinds to change screen brightness.