From bc27f121d984f7f294bf9a3768a1f866c7ef7f61 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Sun, 21 May 2023 17:08:32 +0100 Subject: [PATCH] /etc/ashrc for interactive non-login shells --- modules/base.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/modules/base.nix b/modules/base.nix index 54f8cb5..c64d374 100644 --- a/modules/base.nix +++ b/modules/base.nix @@ -146,13 +146,17 @@ in { console = node "c" "5" "1" "0600"; pts = dir {}; }; - etc = dir { + etc = let profile = symlink (pkgs.writeScript ".profile" '' - PATH=${lib.makeBinPath config.defaultProfile.packages}:/bin + PATH=${lib.makeBinPath config.defaultProfile.packages}:/bin export PATH - ''); + ''); + in dir { + inherit profile; + ashrc = profile; }; + proc = dir {}; run = dir {}; sys = dir {};