[home-work] Fix bash/zsh init conflicts
This commit is contained in:
@@ -15,34 +15,10 @@ in
|
|||||||
|
|
||||||
# Override Darwin-incompatible settings from base role
|
# Override Darwin-incompatible settings from base role
|
||||||
programs.rbw.settings.pinentry = lib.mkForce pkgs.pinentry_mac;
|
programs.rbw.settings.pinentry = lib.mkForce pkgs.pinentry_mac;
|
||||||
|
|
||||||
programs.bash = {
|
|
||||||
enable = true;
|
|
||||||
initExtra = ''
|
|
||||||
source ~/Development/config_files/square/bashrc
|
|
||||||
|
|
||||||
# Generated by Hermit; START; DO NOT EDIT.
|
# Disable direct control over bash and zsh
|
||||||
if [[ $- == *i* ]]; then
|
programs.bash.enable = lib.mkForce false;
|
||||||
HERMIT_ROOT_BIN="''${HERMIT_ROOT_BIN:-"$HOME/bin/hermit"}"
|
programs.zsh.enable = lib.mkForce false;
|
||||||
eval "$(test -x $HERMIT_ROOT_BIN && $HERMIT_ROOT_BIN shell-hooks --print --bash)"
|
|
||||||
fi
|
|
||||||
# Generated by Hermit; END; DO NOT EDIT.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.zsh = {
|
|
||||||
enable = true;
|
|
||||||
initContent = ''
|
|
||||||
source ~/Development/config_files/square/zshrc
|
|
||||||
|
|
||||||
# Generated by Hermit; START; DO NOT EDIT.
|
|
||||||
if [[ -o interactive ]]; then
|
|
||||||
HERMIT_ROOT_BIN="''${HERMIT_ROOT_BIN:-"$HOME/bin/hermit"}"
|
|
||||||
eval "$(test -x $HERMIT_ROOT_BIN && $HERMIT_ROOT_BIN shell-hooks --print --zsh)"
|
|
||||||
fi
|
|
||||||
# Generated by Hermit; END; DO NOT EDIT.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
# Keep SSH and Git disabled to avoid conflicts with work environment
|
# Keep SSH and Git disabled to avoid conflicts with work environment
|
||||||
programs.ssh.enable = lib.mkForce false;
|
programs.ssh.enable = lib.mkForce false;
|
||||||
@@ -51,8 +27,14 @@ in
|
|||||||
|
|
||||||
home.shell.enableShellIntegration = true;
|
home.shell.enableShellIntegration = true;
|
||||||
|
|
||||||
|
home.roles = {
|
||||||
|
base.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
./roles
|
||||||
./modules/emacs
|
./modules/emacs
|
||||||
|
./modules/kubectl
|
||||||
./modules/tmux
|
./modules/tmux
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user