commit 1e74bb45c681f40a60f1ce38f84612ed648a838f
parent afbe2800e622d125828439b273629c6fd784fee7
Author: Francesco Saccone <francesco@francescosaccone.com>
Date: Wed, 19 Mar 2025 14:58:06 +0100
feat: replace bash with mksh
Signed-off-by: Francesco Saccone <francesco@francescosaccone.com>
Diffstat:
4 files changed, 6 insertions(+), 11 deletions(-)
diff --git a/homes/common/default.nix b/homes/common/default.nix
@@ -3,7 +3,7 @@
...
}:
{
- programs.bash = {
- enable = true;
- };
+ home.file.".mkshrc".text = ''
+ PS1="[\${"$"}{PWD}/]$ "
+ '';
}
diff --git a/homes/francesco/user/default.nix b/homes/francesco/user/default.nix
@@ -18,7 +18,7 @@
];
createHome = true;
home = "/home/francesco";
- shell = "${pkgs.bashInteractive}/bin/bash";
+ shell = "${pkgs.mksh}/bin/mksh";
};
fonts.packages = with pkgs; [
diff --git a/modules/home/gpg/default.nix b/modules/home/gpg/default.nix
@@ -45,8 +45,6 @@
pinentryPackage = pkgs.pinentry-tty;
};
- programs.bash.initExtra = ''
- export GPG_TTY=$(${pkgs.coreutils}/bin/tty)
- '';
+ home.file.".mkshrc".text = "export GPG_TTY=$(${pkgs.coreutils}/bin/tty)";
};
}
diff --git a/modules/home/vis/default.nix b/modules/home/vis/default.nix
@@ -16,15 +16,12 @@
};
config = lib.mkIf config.modules.vis.enable {
- programs.bash.initExtra = ''
- export EDITOR=${pkgs.vis}/bin/vis
- '';
-
home = {
packages = [
pkgs.vis
];
file = {
+ ".mkshrc".text = "export EDITOR=${pkgs.vis}/bin/vis";
".config/vis/visrc.lua".source = ./visrc.lua;
};
};