infra/shell.nix
zimbatm c989fbe2c7
nixos: set default deployment and state in the shell
This makes it easier to play with nixops. Eg: `nixops ssh build01`
2020-01-12 17:12:35 +01:00

20 lines
337 B
Nix

let
sources = import ./nix/sources.nix;
pkgs = import sources.nixpkgs {
config = {};
overlays = [];
};
in pkgs.mkShell {
NIX_PATH="nixpkgs=${toString pkgs.path}";
NIXOPS_DEPLOYMENT="nix-community-infra";
NIXOPS_STATE="./state/deployment-state.nixops";
buildInputs = [
pkgs.git-crypt
pkgs.nixops
];
}