3b5c031619
- Introduced a new module `rbw-ssh-socket.nix` to manage SSH_AUTH_SOCK for rbw. - Updated `default.nix` to utilize the new SSH socket variable for session management. - Refactored Bash and Fish shell configurations to use the new module for setting SSH_AUTH_SOCK, improving maintainability and consistency across shell environments.
23 lines
590 B
Nix
23 lines
590 B
Nix
{ self, ... }: {
|
|
flake.homeManagerModules.wisdomShellBash =
|
|
{ config, lib, ... }:
|
|
let
|
|
root = config.chiasson.home;
|
|
cfg = config.chiasson.home.shell.bash;
|
|
rbw = self.lib.rbwSshSocket;
|
|
in
|
|
{
|
|
options.chiasson.home.shell.bash.enable = lib.mkEnableOption "Bash + rbw SSH socket env in profile/init." // {
|
|
default = true;
|
|
};
|
|
|
|
config = lib.mkIf (root.enable && cfg.enable) {
|
|
programs.bash = {
|
|
enable = true;
|
|
profileExtra = rbw.bashSnippet;
|
|
initExtra = rbw.bashSnippet;
|
|
};
|
|
};
|
|
};
|
|
}
|