mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 05:03:09 +00:00
keychain: add nushell integration
This commit is contained in:
parent
2dce7f1a55
commit
da72e6fc6b
1 changed files with 11 additions and 0 deletions
|
@ -87,6 +87,14 @@ in {
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enableNushellIntegration = mkOption {
|
||||||
|
default = true;
|
||||||
|
type = types.bool;
|
||||||
|
description = ''
|
||||||
|
Whether to enable Nushell integration.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
enableXsessionIntegration = mkOption {
|
enableXsessionIntegration = mkOption {
|
||||||
default = true;
|
default = true;
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
|
@ -108,6 +116,9 @@ in {
|
||||||
programs.zsh.initExtra = mkIf cfg.enableZshIntegration ''
|
programs.zsh.initExtra = mkIf cfg.enableZshIntegration ''
|
||||||
eval "$(SHELL=zsh ${shellCommand})"
|
eval "$(SHELL=zsh ${shellCommand})"
|
||||||
'';
|
'';
|
||||||
|
programs.nushell.extraConfig = mkIf cfg.enableNushellIntegration ''
|
||||||
|
${shellCommand} | parse -r '(\w+)=(.*); export \1' | transpose -ird | load-env
|
||||||
|
'';
|
||||||
xsession.initExtra = mkIf cfg.enableXsessionIntegration ''
|
xsession.initExtra = mkIf cfg.enableXsessionIntegration ''
|
||||||
eval "$(${shellCommand})"
|
eval "$(${shellCommand})"
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue