Skip to content

Commit

Permalink
Use bundled upstream nix-direv
Browse files Browse the repository at this point in the history
For now...
  • Loading branch information
bbenne10 committed Feb 27, 2023
1 parent a00b995 commit d40bb5c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
5 changes: 0 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
url = "github:nixos/nixpkgs/nixpkgs-22.11-darwin";
};

nix-direnv = {
url = "github:nix-community/nix-direnv";
inputs.nixpkgs.follows = "nixpkgs";
};

darwin = {
url = "github:bbenne10/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
Expand Down
4 changes: 1 addition & 3 deletions lib/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
, lib
, pkgs
, home-manager
, nix-direnv
, system
, userName
, environment
Expand Down Expand Up @@ -58,7 +57,7 @@ in
programs.direnv = {
enable = true;
enableZshIntegration = true;
nix-direnv = { enable = false; };
nix-direnv = { enable = true; };
stdlib = ''
# Centralize direnv layouts in $HOME/.cache/direnv/layouts
: ''${XDG_CACHE_HOME:=$HOME/.cache}
Expand All @@ -69,7 +68,6 @@ in
echo -n "$PWD" | shasum | cut -d ' ' -f 1
)}"
}
source ${nix-direnv}/direnvrc
'';
};

Expand Down

0 comments on commit d40bb5c

Please sign in to comment.