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/bash.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'users/seth/shell/bash.nix') diff --git a/users/seth/shell/bash.nix b/users/seth/shell/bash.nix index f086ec4..bdc2fe1 100644 --- a/users/seth/shell/bash.nix +++ b/users/seth/shell/bash.nix @@ -1,6 +1,9 @@ -{config, ...}: { +{config, standalone, ...}: { programs.bash = { enable = true; + bashrcExtra = if standalone then '' + . ${config.home.homeDirectory}/.nix-profile/etc/profile.d/nix.sh + '' else ''''; historyFile = "${config.xdg.stateHome}/bash/history"; historyFileSize = 1000; historySize = 100; -- cgit v1.2.3