From 4eeae4423f6cb9768c97208c4bcd5eee82e1f765 Mon Sep 17 00:00:00 2001 From: Jan Lafferton Date: Sat, 3 Aug 2024 23:13:46 +0200 Subject: [PATCH] direnv: enable nix-direnv by default Makes direnv together with nix fast by default. --- modules/programs/direnv.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/modules/programs/direnv.nix b/modules/programs/direnv.nix index 4a7636705..08cb50f48 100644 --- a/modules/programs/direnv.nix +++ b/modules/programs/direnv.nix @@ -8,7 +8,8 @@ let tomlFormat = pkgs.formats.toml { }; -in { +in +{ imports = [ (mkRenamedOptionModule [ "programs" @@ -88,9 +89,14 @@ in { }; nix-direnv = { - enable = mkEnableOption '' - [nix-direnv](https://github.com/nix-community/nix-direnv), - a fast, persistent use_nix implementation for direnv''; + enable = mkOption { + default = true; + type = types.bool; + description = '' + [nix-direnv](https://github.com/nix-community/nix-direnv), + a fast, persistent use_nix implementation for direnv + ''; + }; package = mkPackageOption pkgs "nix-direnv" { }; };