blob: 7f9828552c4701a51a6f18671d2f56e6480571b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
let
# nix-shell -E 'import (builtins.fetchurl "$url")'
name = "nix-shell.nixops.${version}.";
pkgs = import <nixpkgs> { };
version = "20.09";
project = "${builtins.getEnv "HOME"}/Shares/Projects/infrastructure";
channel = (import "${project}/nixos/versions.nix")."${version}".channel;
in pkgs.mkShell {
inherit name;
shellHook = ''
export VAULT_ADDR='http://vault.test'
export NIX_PATH=${channel}/nixexprs.tar.xz
export _NIX_CHANNEL=${channel}
export PS1='\h (${name}''${_NIX_CHANNEL##*.}) \W \$ '
cd '${project}' || exit 1
ssh -T git@github.com
'';
}
|