From 9b60e0cfe2ebe2cf116ae0bc5502b89be74a5944 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Tue, 22 Dec 2020 15:25:22 +0100 Subject: [PATCH] Add nixpkgs-review with pass wrapper --- users/simon/files/zsh/pass-wrappers.zsh | 5 +++++ users/simon/modules/programs.nix | 1 + 2 files changed, 6 insertions(+) diff --git a/users/simon/files/zsh/pass-wrappers.zsh b/users/simon/files/zsh/pass-wrappers.zsh index 7779cb2..8821449 100644 --- a/users/simon/files/zsh/pass-wrappers.zsh +++ b/users/simon/files/zsh/pass-wrappers.zsh @@ -31,3 +31,8 @@ function docker-rm() ( export DOCKER_LS_PASSWORD="$(pass sbruder.de/account | head -n 1)" command docker-rm $@ ) + +function nixpkgs-review() ( + export GITHUB_TOKEN="$(pass web/github.com/pat/nixpkgs-review)" + command nixpkgs-review $@ +) diff --git a/users/simon/modules/programs.nix b/users/simon/modules/programs.nix index 28cc868..6efe65e 100644 --- a/users/simon/modules/programs.nix +++ b/users/simon/modules/programs.nix @@ -101,6 +101,7 @@ # nix tools niv # depdendency manager + nixpkgs-review # review nixpkgs pull request ## media