nixos: add graphite api to graphite functionality