nixos/cgminer: fix restarts, set uid