profile-sync-daemon: refactor module
Merge pull request #5326 from prikhi/refactor-psd-config

profile-sync-daemon: refactor nixos module