aboutsummaryrefslogtreecommitdiffstats
path: root/modules/by-name
diff options
context:
space:
mode:
Diffstat (limited to 'modules/by-name')
-rw-r--r--modules/by-name/di/direnv/module.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/by-name/di/direnv/module.nix b/modules/by-name/di/direnv/module.nix
new file mode 100644
index 00000000..afe95712
--- /dev/null
+++ b/modules/by-name/di/direnv/module.nix
@@ -0,0 +1,21 @@
+{
+ config,
+ lib,
+ ...
+}: let
+ cfg = config.soispha.programs.direnv;
+in {
+ options.soispha.programs.direnv = {
+ enable = lib.mkEnableOption "direnv";
+ };
+
+ config.home-manager.users.soispha.programs.direnv = lib.mkIf cfg.enable {
+ enable = true;
+ nix-direnv.enable = true;
+ config = {
+ warn_timeout = 0;
+ strict_env = true;
+ disable_stdin = true;
+ };
+ };
+}