mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
keychain: add xsession integration
This commit is contained in:
parent
5992c1b469
commit
a0ab0b16fe
1 changed files with 12 additions and 0 deletions
|
@ -84,6 +84,15 @@ in
|
|||
Whether to enable Zsh integration.
|
||||
'';
|
||||
};
|
||||
|
||||
enableXsessionIntegration = mkOption {
|
||||
default = true;
|
||||
type = types.bool;
|
||||
visible = pkgs.stdenv.hostPlatform.isLinux;
|
||||
description = ''
|
||||
Whether to run keychain from your <filename>~/.xsession</filename>.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
@ -97,5 +106,8 @@ in
|
|||
programs.zsh.initExtra = mkIf cfg.enableZshIntegration ''
|
||||
eval "$(${shellCommand})"
|
||||
'';
|
||||
xsession.initExtra = mkIf cfg.enableXsessionIntegration ''
|
||||
eval "$(${shellCommand})"
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue