summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-12-10 19:34:35 +0100
committerAlan Pearce2024-12-10 19:34:35 +0100
commit1958bbc20349e1081c62b4c099d25c553c6fc397 (patch)
tree4f59a3b975eedea0d5bd0cfb9c9a6ed147641a08
parentc98dc89219bdd965b6fd3aeb31fd33335add2e3b (diff)
downloadnixfiles-1958bbc20349e1081c62b4c099d25c553c6fc397.tar.lz
nixfiles-1958bbc20349e1081c62b4c099d25c553c6fc397.tar.zst
nixfiles-1958bbc20349e1081c62b4c099d25c553c6fc397.zip
fish: use home-manager's nix-your-shell integration
-rw-r--r--user/settings/fish.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/user/settings/fish.nix b/user/settings/fish.nix
index 0f6bdcc6..480c9ade 100644
--- a/user/settings/fish.nix
+++ b/user/settings/fish.nix
@@ -31,9 +31,7 @@
           };
         }
       ];
-    # TODO: pre-generate nix-your-shell
     interactiveShellInit = ''
-      ${pkgs.nix-your-shell}/bin/nix-your-shell --nom fish env | source
       bind \es __ghq_repository_search
       # don't bind ctrl-t, it does nice things on macOS/BSD
       set FZF_CTRL_T_COMMAND
@@ -88,4 +86,8 @@
     recursive = true;
     source = ./fish/functions;
   };
+
+  programs.nix-your-shell = {
+    enable = true;
+  };
 }