summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--user/settings/fish.nix2
-rw-r--r--user/settings/nix.nix5
2 files changed, 2 insertions, 5 deletions
diff --git a/user/settings/fish.nix b/user/settings/fish.nix
index de4ec062..7e144e05 100644
--- a/user/settings/fish.nix
+++ b/user/settings/fish.nix
@@ -23,7 +23,9 @@
           };
         }
       ];
+    # TODO: pre-generate nix-your-shell
     interactiveShellInit = ''
+      ${pkgs.nix-your-shell}/bin/nix-your-shell fish | source
       bind \es __ghq_repository_search
       # don't bind ctrl-t, it does nice things on macOS/BSD
       set FZF_CTRL_T_COMMAND
diff --git a/user/settings/nix.nix b/user/settings/nix.nix
index 30bfe47a..c24bb984 100644
--- a/user/settings/nix.nix
+++ b/user/settings/nix.nix
@@ -10,13 +10,8 @@ in
     ../../pin.nix
   ];
   nixpkgs.config = import ../config.nix;
-  # move to system config
-  programs.fish.interactiveShellInit = ''
-    any-nix-shell fish --info-right | source
-  '';
 
   home.packages = with pkgs; [
-    any-nix-shell
     nil
     nix-prefetch-scripts
     nix-init