1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-26 16:38:34 +02:00

keychain: add xsession integration

This commit is contained in:
jD91mZM2 2019-12-28 17:14:03 +01:00 committed by Robert Helgesson
parent 5992c1b469
commit a0ab0b16fe
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89

View File

@ -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})"
'';
};
}