From 399764b561a0097c5559b1b4089cc6fa21433850 Mon Sep 17 00:00:00 2001 From: seth Date: Fri, 24 Feb 2023 18:43:22 -0500 Subject: support shells in standalone mode --- users/seth/shell/fish.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'users/seth/shell/fish.nix') diff --git a/users/seth/shell/fish.nix b/users/seth/shell/fish.nix index b017f03..09b7b42 100644 --- a/users/seth/shell/fish.nix +++ b/users/seth/shell/fish.nix @@ -1,4 +1,4 @@ -{pkgs, ...}: { +{config, pkgs, standalone, ...}: { xdg.configFile."fish/themes" = { recursive = true; source = @@ -15,9 +15,11 @@ programs.fish = { enable = true; interactiveShellInit = '' - fish_config theme choose "Catppuccin Mocha" + fish_config theme choose "Catppuccin Mocha" direnv hook fish | source - ''; + '' + (if standalone then '' + . ${config.home.homeDirectory}/.nix-profile/etc/profile.d/nix.fish + '' else ''''); plugins = [ { name = "autopair-fish"; -- cgit v1.2.3