diff options
| author | seth <[email protected]> | 2023-02-24 18:43:22 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-02-24 18:43:22 -0500 |
| commit | 399764b561a0097c5559b1b4089cc6fa21433850 (patch) | |
| tree | 8c859eb27740fd02f357c31e0d80c4f4b6baa392 /users/seth/shell/bash.nix | |
| parent | f41124b52c53a3eabe924f38ec48705acf64c585 (diff) | |
support shells in standalone mode
Diffstat (limited to 'users/seth/shell/bash.nix')
| -rw-r--r-- | users/seth/shell/bash.nix | 5 |
1 files changed, 4 insertions, 1 deletions
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; |
