From c6f5283d7695d4c0f52f67e443b1e2f5f2e6b9a7 Mon Sep 17 00:00:00 2001 From: main Date: Thu, 10 Nov 2022 22:37:55 +0100 Subject: [PATCH] Makes bash load .bashrc on SSH login Signed-off-by: main --- home-manager/modules/bash/bash_profile | 7 +++++++ home-manager/modules/bash/default.nix | 1 + 2 files changed, 8 insertions(+) create mode 100644 home-manager/modules/bash/bash_profile diff --git a/home-manager/modules/bash/bash_profile b/home-manager/modules/bash/bash_profile new file mode 100644 index 0000000..9f2d5cf --- /dev/null +++ b/home-manager/modules/bash/bash_profile @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +# SPDX-FileCopyrightText: 2022 Richard Brežák +# +# SPDX-License-Identifier: LGPL-3.0-or-later + +source $HOME/.bashrc diff --git a/home-manager/modules/bash/default.nix b/home-manager/modules/bash/default.nix index 1612e38..4cc26e7 100644 --- a/home-manager/modules/bash/default.nix +++ b/home-manager/modules/bash/default.nix @@ -35,6 +35,7 @@ in { programs.direnv.nix-direnv.enable = mkIf cfg.enableDirenv true; home.file = { + ".bash_profile".source = ./bash_profile; ".bashrc".source = pkgs.writeSubstitutedFile { name = ".bashrc"; file = ./bashrc;