It may be learnt behaviour in your case, but I'd really like you to look up the big 5 personality model, and look into agreeableness trait and how it applies to you and those around you.
Also, exactly what you define as 'nice'. For me being nice is being ethical and thinking of others. That's not the same thing as learnt politeness. There are plenty of people who are polite, who say the right things......but they're not really ethical, deep down. Also, some things aren't 'nice', but they might be true and therefore need to be said out loud
If you really are an ethical person who often thinks of others, once piece of advice is be careful who you're generous to. To you, it might not be a big deal. It might be second nature even to help others, give them things they need and be thoughtful. If you are lucky (the other person might, 'Oh how nice, that was really thoughtful of her', and think more highly of you. For others, your generosity might actually might make them feel uncomfortable, like they never asked you for it and now feel like they owe you. If you are more unlucky, the other person will won't think 'How nice of her', they'll think 'Oh....wow....well.....I must be really special'. Narcissists especially think like this. When you are nice to them, all it does it puff up their already over-inflated egos. They might, in their grandiose manner, decide to take you under their wing, so to speak, but it won't be an equal relationship. You will have unknowingly raised your hand to be their handmaiden, and they will treat you with less respect, eventually. Others, usually those who've grown up in very rough areas, see kindness, especially if it's more random than they're used to as weakness, plain & simple. They won't really appreciate it, and they will see you as a target for shit behaviour. Being seen as too nice can also attract all kinds of shit people to you.
I think what you want to feel is appreciated, but you might be appreciated, just how you are, without the added generosity to others. Also, please don't tolerate rudeness. If someone's rude in your home, withdraw yourself as their host or kick them out.