diff --git a/flake.lock b/flake.lock index 6b6d460..66e43d1 100644 --- a/flake.lock +++ b/flake.lock @@ -1082,11 +1082,11 @@ "zsh-nix-shell": "zsh-nix-shell" }, "locked": { - "lastModified": 1650732759, - "narHash": "sha256-WL2rhiaByhF3AQUlBqD+QcaeSymkqGNqS9PJTsIB6DM=", + "lastModified": 1650733953, + "narHash": "sha256-3nxAHsPMr7BjmTAtJnw5CU0zGHqg2siwD8med6erZBE=", "owner": "traxys", "repo": "zsh-flake", - "rev": "758a3ff2d86a6b6eb2bc956fba798b30275c2a57", + "rev": "abf6d2a6befc5a1e50eec3421ed8fce1fd19a801", "type": "github" }, "original": { diff --git a/home.nix b/home.nix index 02bd690..59a9592 100644 --- a/home.nix +++ b/home.nix @@ -24,7 +24,6 @@ in bintools httpie sqlx-cli - direnv codespell ripgrep file @@ -45,6 +44,12 @@ in }; programs = { + direnv = { + enable = true; + nix-direnv.enable = true; + enableZshIntegration = true; + }; + home-manager = { enable = true; }; @@ -68,6 +73,12 @@ in }; }; + programs.zsh = { + shellAliases = { + new-direnv = "nix flake new -t github:nix-community/nix-direnv"; + }; + }; + # This value determines the Home Manager release that your # configuration is compatible with. This helps avoid breakage # when a new Home Manager release introduces backwards