system.nix: fix several broken references