From 97f4ebee74aa8391cace8558b0a0569bb3ca6147 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 30 Mar 2022 12:40:35 +0200 Subject: [PATCH] home: fish: enable nix auto run --- home/fish/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/home/fish/default.nix b/home/fish/default.nix index 3f50c71..0e9d721 100644 --- a/home/fish/default.nix +++ b/home/fish/default.nix @@ -11,6 +11,12 @@ in options.my.home.fish.enable = (mkEnableOption "Fish shell") // { default = true; }; config = mkIf cfg.enable { + home.sessionVariables = { + # automatically prompt to run program in nix-shell if it's not installed + NIX_AUTO_RUN = "1"; + NIX_AUTO_RUN_INTERACTIVE = "1"; + }; + programs.fish = { enable = true; };