nixos/cgminer: fix restarts, set uid
Merge pull request #1509 from offlinehacker/pkgs/cgminer/fix

nixos/cgminer: fix restarts, set uid