feat(users/flokli/nixos): add direnv support

Expose `deps` separately, add a direnv with PATH_add for it to bring
tooling into $PATH.

Change-Id: I432cd2b082cad89e08bef78dc4653e10e137cd6b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9842
Reviewed-by: flokli <flokli@flokli.de>
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
This commit is contained in:
Florian Klink 2023-10-30 16:21:16 +02:00 committed by flokli
parent 5b03bebce8
commit c37c9cc770
2 changed files with 7 additions and 6 deletions

View file

@ -0,0 +1 @@
PATH_add $(nix-build ../../.. -A users.flokli.nixos.deps --no-out-link)/bin

View file

@ -28,13 +28,13 @@ depot.nix.readTree.drvTargets rec {
deploy-archeology = (deployScript "archeology" archeologySystem); deploy-archeology = (deployScript "archeology" archeologySystem);
deploy-archeology-ec2 = (deployScript "archeology-ec2" archeologyEc2System); deploy-archeology-ec2 = (deployScript "archeology-ec2" archeologyEc2System);
shell = pkgs.mkShell { deps = (depot.nix.lazy-deps {
name = "flokli-nixos-shell";
packages = [
(depot.nix.lazy-deps {
deploy-archeology.attr = "users.flokli.nixos.deploy-archeology"; deploy-archeology.attr = "users.flokli.nixos.deploy-archeology";
deploy-archeology-ec2.attr = "users.flokli.nixos.deploy-archeology-ec2"; deploy-archeology-ec2.attr = "users.flokli.nixos.deploy-archeology-ec2";
}) });
];
shell = pkgs.mkShell {
name = "flokli-nixos-shell";
packages = [ deps ];
}; };
} }