2024-11-10 11:50:21 +01:00
|
|
|
{config, pkgs, lib, ...}:
|
2023-10-08 11:42:08 +02:00
|
|
|
{
|
|
|
|
|
2024-03-11 16:19:31 +01:00
|
|
|
imports = [
|
2023-10-08 11:42:08 +02:00
|
|
|
./zsh.nix
|
|
|
|
./bash.nix
|
|
|
|
./fish.nix
|
|
|
|
./starship.nix
|
2024-03-11 16:19:31 +01:00
|
|
|
];
|
2024-11-10 11:50:21 +01:00
|
|
|
home.sessionVariables = {
|
|
|
|
EDITOR = lib.mkDefault (if (config.materus.profile.editor.emacs.enable) then
|
|
|
|
lib.getBin (pkgs.writeShellScript "editor" ''${config.programs.emacs.finalPackage}/bin/emacsclient --alternate-editor= -c -nw $@'')
|
|
|
|
else "${pkgs.micro}/bin/micro");
|
|
|
|
VISUAL = lib.mkDefault (if (config.materus.profile.editor.emacs.enable) then
|
|
|
|
lib.getBin (pkgs.writeShellScript "editor-visual" ''exec env COLORTERM=truecolor ${config.programs.emacs.finalPackage}/bin/emacsclient --alternate-editor= -c $@'')
|
|
|
|
else "${pkgs.micro}/bin/micro");
|
|
|
|
};
|
2024-03-11 16:19:31 +01:00
|
|
|
}
|