There is a module for htop, so use that one instead of home.file. The cool thing is: It has "constants" for some strange integer values. So nix version is actually readable while the generated config is strange. That's a cool pro of nix files.