From a36f64cb93b8acb49d10e54bf9eec60528394eba Mon Sep 17 00:00:00 2001 From: Romain Paquet Date: Mon, 5 Jan 2026 21:42:17 +0100 Subject: [PATCH] add direnv-instant --- flake.lock | 46 ++++++++++++++++++++++++++++++++++++++++++++ flake.nix | 4 ++++ home-manager/dev.nix | 3 +++ 3 files changed, 53 insertions(+) diff --git a/flake.lock b/flake.lock index 36c0341..0fca0a4 100644 --- a/flake.lock +++ b/flake.lock @@ -81,6 +81,30 @@ "url": "https://git.clan.lol/clan/data-mesher/archive/main.tar.gz" } }, + "direnv-instant": { + "inputs": { + "flake-parts": [ + "flake-parts" + ], + "nixpkgs": [ + "nixpkgs" + ], + "treefmt-nix": "treefmt-nix_3" + }, + "locked": { + "lastModified": 1767498610, + "narHash": "sha256-DFAfuDZSFl/PwHJaxFVDOY6QJe7SGPR4xL/CoN16WZ8=", + "owner": "Mic92", + "repo": "direnv-instant", + "rev": "cde46db6ca09cfbfed09bb3866c872d857a0eef1", + "type": "github" + }, + "original": { + "owner": "Mic92", + "repo": "direnv-instant", + "type": "github" + } + }, "disko": { "inputs": { "nixpkgs": [ @@ -343,6 +367,7 @@ "inputs": { "buildbot-nix": "buildbot-nix", "clan-core": "clan-core", + "direnv-instant": "direnv-instant", "disko": "disko_2", "flake-parts": "flake-parts_2", "home-manager": "home-manager", @@ -449,6 +474,27 @@ "repo": "treefmt-nix", "type": "github" } + }, + "treefmt-nix_3": { + "inputs": { + "nixpkgs": [ + "direnv-instant", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1767468822, + "narHash": "sha256-MpffQxHxmjVKMiQd0Tg2IM/bSjjdQAM+NDcX6yxj7rE=", + "owner": "numtide", + "repo": "treefmt-nix", + "rev": "d56486eb9493ad9c4777c65932618e9c2d0468fc", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "treefmt-nix", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index c7e7b0e..76569b2 100644 --- a/flake.nix +++ b/flake.nix @@ -51,5 +51,9 @@ buildbot-nix.url = "github:nix-community/buildbot-nix"; buildbot-nix.inputs.nixpkgs.follows = "nixpkgs"; + + direnv-instant.url = "github:Mic92/direnv-instant"; + direnv-instant.inputs.nixpkgs.follows = "nixpkgs"; + direnv-instant.inputs.flake-parts.follows = "flake-parts"; }; } diff --git a/home-manager/dev.nix b/home-manager/dev.nix index f0fb31e..06c3332 100644 --- a/home-manager/dev.nix +++ b/home-manager/dev.nix @@ -9,6 +9,7 @@ ./cli.nix ./helix.nix self.homeManagerModules.dotfiles + self.inputs.direnv-instant.homeModules.direnv-instant ]; home.packages = with pkgs; [ @@ -34,6 +35,8 @@ nix-direnv.enable = true; }; + programs.direnv-instant.enable = true; + xdg.configFile."hut/config".source = "${config.dotfiles.path}/.config/hut/config"; home.file.".ssh/config".source = "${config.dotfiles.path}/.ssh/config"; }